Update README.md
Browse files
README.md
CHANGED
|
@@ -4,18 +4,35 @@
|
|
| 4 |
|
| 5 |
This README provides a step-by-step guide to download the repository, set up the required virtual environment named "PowerPaint" using conda, and run PowerPaint with or without ControlNet.
|
| 6 |
|
|
|
|
|
|
|
| 7 |
## 🚀 News
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
**December 18, 2023**
|
| 10 |
|
| 11 |
*Enhanced PowerPaint Model*
|
| 12 |
|
| 13 |
- We are delighted to announce the release of more stable model weights. These refined weights can now be accessed on [Hugging Face](https://huggingface.co/JunhaoZhuang/PowerPaint-v1/tree/main). The `gradio_PowerPaint.py` file and [Online Demo](https://openxlab.org.cn/apps/detail/rangoliu/PowerPaint) have also been updated as part of this release.
|
| 14 |
|
| 15 |
-
|
| 16 |
-
## Next
|
| 17 |
-
|
| 18 |
-
**Stronger Model Weights Coming Soon!**
|
| 19 |
|
| 20 |
________________
|
| 21 |
<img src='https://github.com/open-mmlab/mmagic/assets/12782558/acd01391-c73f-4997-aafd-0869aebcc915'/>
|
|
@@ -27,7 +44,7 @@ ________________
|
|
| 27 |
git clone https://github.com/zhuang2002/PowerPaint.git
|
| 28 |
|
| 29 |
# Navigate to the Repository
|
| 30 |
-
cd powerpaint
|
| 31 |
|
| 32 |
# Create Virtual Environment with Conda
|
| 33 |
conda create --name PowerPaint python=3.9
|
|
@@ -35,7 +52,16 @@ conda activate PowerPaint
|
|
| 35 |
|
| 36 |
# Install Dependencies
|
| 37 |
pip install -r requirements.txt
|
|
|
|
|
|
|
| 38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
# Create Models Folder
|
| 40 |
mkdir models
|
| 41 |
|
|
@@ -44,19 +70,13 @@ git lfs install
|
|
| 44 |
|
| 45 |
# Clone PowerPaint Model
|
| 46 |
git lfs clone https://huggingface.co/JunhaoZhuang/PowerPaint-v1/ ./models
|
| 47 |
-
```
|
| 48 |
-
|
| 49 |
-
## Run PowerPaint
|
| 50 |
|
| 51 |
-
To run PowerPaint, execute the following command:
|
| 52 |
-
|
| 53 |
-
```bash
|
| 54 |
python gradio_PowerPaint.py
|
| 55 |
```
|
| 56 |
|
| 57 |
This command will launch the Gradio interface for PowerPaint.
|
| 58 |
|
| 59 |
-
Feel free to explore and
|
| 60 |
|
| 61 |
## BibTeX
|
| 62 |
|
|
|
|
| 4 |
|
| 5 |
This README provides a step-by-step guide to download the repository, set up the required virtual environment named "PowerPaint" using conda, and run PowerPaint with or without ControlNet.
|
| 6 |
|
| 7 |
+
**Feel free to try it and give it a star!**:star:
|
| 8 |
+
|
| 9 |
## 🚀 News
|
| 10 |
|
| 11 |
+
**April 7, 2024**:fire:
|
| 12 |
+
|
| 13 |
+
- We open source the model weights and code for PowerPaint v2.[](https://openxlab.org.cn/models/detail/zhuangjunhao/PowerPaint_v2)[](https://huggingface.co/JunhaoZhuang/PowerPaint_v2)
|
| 14 |
+
|
| 15 |
+
**April 6, 2024**:fire:
|
| 16 |
+
|
| 17 |
+
- We have retrained a new PowerPaint, taking inspiration from Brushnet. The [Online Demo](https://openxlab.org.cn/apps/detail/rangoliu/PowerPaint) has been updated accordingly. **We plan to release the model weights and code as open source in the next few days**.
|
| 18 |
+
- Tips: We preserve the cross-attention layer that was deleted by BrushNet for the task prompts input.
|
| 19 |
+
|
| 20 |
+
| | Object insertion | Object Removal|Shape-guided Object Insertion|Outpainting|
|
| 21 |
+
|-----------------|-----------------|-----------------|-----------------|-----------------|
|
| 22 |
+
| Original Image| ||||
|
| 23 |
+
| Output| | |||
|
| 24 |
+
|
| 25 |
+
**December 22, 2023**:wrench:
|
| 26 |
+
|
| 27 |
+
- The logical error in loading ControlNet has been rectified. The `gradio_PowerPaint.py` file and [Online Demo](https://openxlab.org.cn/apps/detail/rangoliu/PowerPaint) have also been updated.
|
| 28 |
+
|
| 29 |
**December 18, 2023**
|
| 30 |
|
| 31 |
*Enhanced PowerPaint Model*
|
| 32 |
|
| 33 |
- We are delighted to announce the release of more stable model weights. These refined weights can now be accessed on [Hugging Face](https://huggingface.co/JunhaoZhuang/PowerPaint-v1/tree/main). The `gradio_PowerPaint.py` file and [Online Demo](https://openxlab.org.cn/apps/detail/rangoliu/PowerPaint) have also been updated as part of this release.
|
| 34 |
|
| 35 |
+
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
________________
|
| 38 |
<img src='https://github.com/open-mmlab/mmagic/assets/12782558/acd01391-c73f-4997-aafd-0869aebcc915'/>
|
|
|
|
| 44 |
git clone https://github.com/zhuang2002/PowerPaint.git
|
| 45 |
|
| 46 |
# Navigate to the Repository
|
| 47 |
+
cd projects/powerpaint
|
| 48 |
|
| 49 |
# Create Virtual Environment with Conda
|
| 50 |
conda create --name PowerPaint python=3.9
|
|
|
|
| 52 |
|
| 53 |
# Install Dependencies
|
| 54 |
pip install -r requirements.txt
|
| 55 |
+
```
|
| 56 |
+
## PowerPaint v2
|
| 57 |
|
| 58 |
+
```bash
|
| 59 |
+
python gradio_PowerPaint_BrushNet.py
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
## PowerPaint v1
|
| 63 |
+
|
| 64 |
+
```bash
|
| 65 |
# Create Models Folder
|
| 66 |
mkdir models
|
| 67 |
|
|
|
|
| 70 |
|
| 71 |
# Clone PowerPaint Model
|
| 72 |
git lfs clone https://huggingface.co/JunhaoZhuang/PowerPaint-v1/ ./models
|
|
|
|
|
|
|
|
|
|
| 73 |
|
|
|
|
|
|
|
|
|
|
| 74 |
python gradio_PowerPaint.py
|
| 75 |
```
|
| 76 |
|
| 77 |
This command will launch the Gradio interface for PowerPaint.
|
| 78 |
|
| 79 |
+
Feel free to explore and edit images with PowerPaint!
|
| 80 |
|
| 81 |
## BibTeX
|
| 82 |
|