JunhaoZhuang commited on
Commit
2de3913
1 Parent(s): 09b89d3

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +60 -0
README.md ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # A Task is Worth One Word: Learning with Task Prompts for High-Quality Versatile Image Inpainting
2
+
3
+ ### [Project Page](https://powerpaint.github.io/) | [Paper](https://arxiv.org/abs/2312.03594)
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
+ **Stronger Model Weights and Online Demo Coming Soon!**
8
+
9
+ <img src='https://github.com/open-mmlab/mmagic/assets/12782558/acd01391-c73f-4997-aafd-0869aebcc915'/>
10
+
11
+ ## Getting Started
12
+
13
+ ```bash
14
+ # Clone the Repository
15
+ git clone https://github.com/open-mmlab/mmagic.git
16
+
17
+ # Navigate to the Repository
18
+ cd projects/powerpaint
19
+
20
+ # Create Virtual Environment with Conda
21
+ conda create --name PowerPaint python=3.9
22
+ conda activate PowerPaint
23
+
24
+ # Install Dependencies
25
+ pip install -r requirements.txt
26
+
27
+ # Create Models Folder
28
+ mkdir models
29
+
30
+ # Set up Git LFS
31
+ git lfs install
32
+
33
+ # Clone PowerPaint Model
34
+ git lfs clone https://huggingface.co/JunhaoZhuang/PowerPaint-v1/ ./models
35
+ ```
36
+
37
+ ## Run PowerPaint
38
+
39
+ To run PowerPaint, execute the following command:
40
+
41
+ ```bash
42
+ python gradio_PowerPaint.py
43
+ ```
44
+
45
+ This command will launch the Gradio interface for PowerPaint.
46
+
47
+ Feel free to explore and create stunning images with PowerPaint!
48
+
49
+ ## BibTeX
50
+
51
+ ```
52
+ @misc{zhuang2023task,
53
+ title={A Task is Worth One Word: Learning with Task Prompts for High-Quality Versatile Image Inpainting},
54
+ author={Junhao Zhuang and Yanhong Zeng and Wenran Liu and Chun Yuan and Kai Chen},
55
+ year={2023},
56
+ eprint={2312.03594},
57
+ archivePrefix={arXiv},
58
+ primaryClass={cs.CV}
59
+ }
60
+ ```