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.
December 18, 2023
Enhanced PowerPaint Model
- We are delighted to announce the release of more stable model weights. These refined weights can now be accessed on Hugging Face. The
gradio_PowerPaint.py
file and Online Demo have also been updated as part of this release.
Stronger Model Weights Coming Soon!
![](https://private-user-images.githubusercontent.com/12782558/288625848-acd01391-c73f-4997-aafd-0869aebcc915.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NjQxMDEsIm5iZiI6MTczOTY2MzgwMSwicGF0aCI6Ii8xMjc4MjU1OC8yODg2MjU4NDgtYWNkMDEzOTEtYzczZi00OTk3LWFhZmQtMDg2OWFlYmNjOTE1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDIzNTY0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM1ZjBkMTA1M2RjYjE3ODE3ZGZlZTRiMGEyMjdjNDdiMmE4OWFkZTQ4MjA4NzU0ZmFlY2NiNDY1ODUyOGFlOTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.NvxLPYEeYkGiAicACNhHrIyPNOOvWTgw7fBTeD1mBrU)
# Clone the Repository
git clone https://github.com/zhuang2002/PowerPaint.git
# Navigate to the Repository
cd projects/powerpaint
# Create Virtual Environment with Conda
conda create --name PowerPaint python=3.9
conda activate PowerPaint
# Install Dependencies
pip install -r requirements.txt
# Create Models Folder
mkdir models
# Set up Git LFS
git lfs install
# Clone PowerPaint Model
git lfs clone https://huggingface.co/JunhaoZhuang/PowerPaint-v1/ ./models
To run PowerPaint, execute the following command:
python gradio_PowerPaint.py
This command will launch the Gradio interface for PowerPaint.
Feel free to explore and create stunning images with PowerPaint!
@misc{zhuang2023task,
title={A Task is Worth One Word: Learning with Task Prompts for High-Quality Versatile Image Inpainting},
author={Junhao Zhuang and Yanhong Zeng and Wenran Liu and Chun Yuan and Kai Chen},
year={2023},
eprint={2312.03594},
archivePrefix={arXiv},
primaryClass={cs.CV}
}