MagicClothing
Official implementation of Magic Clothing: Controllable Garment-Driven Image Synthesis
Install / Use
/learn @ShineChen1024/MagicClothingREADME
Magic Clothing (ACM Multimedia 2024)
This repository is the official implementation of Magic Clothing
Magic Clothing is a branch version of OOTDiffusion, focusing on controllable garment-driven image synthesis
<!-- Please refer to our [previous paper](https://arxiv.org/abs/2403.01779) for more details -->Magic Clothing: Controllable Garment-Driven Image Synthesis [arXiv paper]<br> Weifeng Chen*, Tao Gu*, Yuhao Xu*<sup>+</sup>, Chengcai Chen<br> * Equal contribution <sup>+</sup> Corresponding author<br> Xiao-i Research
📢📢 We are continuing to improve this project. Please check earlyAccess branch for new features and updates : )
News
🔥 [2024/4/16] Our paper is available now!
🔥 [2024/3/8] We release the model weights trained on the 768 resolution. The strength of clothing and text prompts can be independently adjusted.
🔥 [2024/2/28] We support IP-Adapter-FaceID with ControlNet-Openpose now! A portrait and a reference pose image can be used as additional conditions.
Have fun with gradio_ipadapter_openpose.py
🔥 [2024/2/23] We support IP-Adapter-FaceID now! A portrait image can be used as an additional condition.
Have fun with gradio_ipadapter_faceid.py
Installation
- Clone the repository
git clone https://github.com/ShineChen1024/MagicClothing.git
- Create a conda environment and install the required packages
conda create -n magicloth python==3.10
conda activate magicloth
pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2
pip install -r requirements.txt
Inference
- Python demo
512 weights
python inference.py --cloth_path [your cloth path] --model_path [your model checkpoints path]
768 weights
python inference.py --cloth_path [your cloth path] --model_path [your model checkpoints path] --enable_cloth_guidance
- Gradio demo
512 weights
python gradio_generate.py --model_path [your model checkpoints path]
768 weights
python gradio_generate.py --model_path [your model checkpoints path] --enable_cloth_guidance
Citation
@article{chen2024magic,
title={Magic Clothing: Controllable Garment-Driven Image Synthesis},
author={Chen, Weifeng and Gu, Tao and Xu, Yuhao and Chen, Chengcai},
journal={arXiv preprint arXiv:2404.09512},
year={2024}
}
TODO List
- [x] Paper
- [x] Gradio demo
- [x] Inference code
- [x] Model weights
- [ ] Training code
Related Skills
node-connect
346.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
