Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shinechen1024/magicclothing
Official implementation of Magic Clothing: Controllable Garment-Driven Image Synthesis
https://github.com/shinechen1024/magicclothing
try-on virtual-tryon vton
Last synced: 29 days ago
JSON representation
Official implementation of Magic Clothing: Controllable Garment-Driven Image Synthesis
- Host: GitHub
- URL: https://github.com/shinechen1024/magicclothing
- Owner: ShineChen1024
- License: other
- Created: 2024-02-06T02:39:13.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-07-29T03:32:56.000Z (4 months ago)
- Last Synced: 2024-10-15T08:02:37.335Z (29 days ago)
- Topics: try-on, virtual-tryon, vton
- Language: Python
- Homepage:
- Size: 48.7 MB
- Stars: 1,388
- Watchers: 37
- Forks: 139
- Open Issues: 57
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Magic Clothing (ACM Multimedia 2024)
This repository is the official implementation of Magic ClothingMagic Clothing is a branch version of [OOTDiffusion](https://github.com/levihsu/OOTDiffusion), focusing on controllable garment-driven image synthesis
> **Magic Clothing: Controllable Garment-Driven Image Synthesis** [[arXiv paper](https://arxiv.org/abs/2404.09512)]
> [Weifeng Chen](https://github.com/ShineChen1024)\*, [Tao Gu](https://github.com/T-Gu)\*, [Yuhao Xu](http://levihsu.github.io/)\*+, [Chengcai Chen](https://www.researchgate.net/profile/Chengcai-Chen)
> \* Equal contribution + Corresponding author
> Xiao-i Research📢📢 We are continuing to improve this project. Please check [earlyAccess branch](https://github.com/ShineChen1024/MagicClothing/tree/earlyAccess) for new features and updates : )
## News
🔥 [2024/4/16] Our [paper](https://arxiv.org/abs/2404.09512) 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.
🤗 [Hugging Face link](https://huggingface.co/ShineChen1024/MagicClothing)
🔥 [2024/2/28] We support [IP-Adapter-FaceID](https://huggingface.co/h94/IP-Adapter-FaceID) with [ControlNet-Openpose](https://github.com/lllyasviel/ControlNet-v1-1-nightly) 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](https://huggingface.co/h94/IP-Adapter-FaceID) now! A portrait image can be used as an additional condition.
Have fun with ***gradio_ipadapter_faceid.py***
![demo](images/demo.png)Â
![workflow](images/workflow.png)Â## Installation
1. Clone the repository
```sh
git clone https://github.com/ShineChen1024/MagicClothing.git
```2. Create a conda environment and install the required packages
```sh
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
1. Python demo
> 512 weights
```sh
python inference.py --cloth_path [your cloth path] --model_path [your model checkpoints path]
```> 768 weights
```sh
python inference.py --cloth_path [your cloth path] --model_path [your model checkpoints path] --enable_cloth_guidance
```2. Gradio demo
> 512 weights
```sh
python gradio_generate.py --model_path [your model checkpoints path]
```> 768 weights
```sh
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