Home

Awesome

πŸ‘”IMAGDressingπŸ‘”: Interactive Modular Apparel Generation for Virtual Dressing

πŸ“¦οΈ Release


IMAGDressing-v1: Customizable Virtual Dressing

<a href='https://imagdressing.github.io/'><img src='https://img.shields.io/badge/Project-Page-green'></a> <a href='http://arxiv.org/abs/2407.12705'><img src='https://img.shields.io/badge/Technique-Report-red'></a> <a href='https://huggingface.co/feishen29/IMAGDressing'><img src='https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Model-blue'></a> GitHub stars

πŸš€ Key Features:

  1. Simple Architecture: IMAGDressing-v1 generates lifelike garments and facilitates easy user-driven scene editing.
  2. New Task, Metric, and Dataset: Introduces the virtual dressing (VD) task, designs a comprehensive affinity metric index (CAMI), and releases the IGPair dataset.
  3. Flexible Plugin Compatibility: Seamlessly integrates with extension plugins such as IP-Adapter, ControlNet, T2I-Adapter, and AnimateDiff.
  4. Rapid Customization: Allows for rapid customization within seconds without the need for additional LoRA training.

πŸ”₯ Examples

<div style="display: flex; justify-content: space-around;"> <img src="assets/scrolling_images1.gif" alt="GIF 1" width="200" /> <img src="assets/scrolling_images2.gif" alt="GIF 2" width="200" /> <img src="assets/scrolling_images3.gif" alt="GIF 3" width="200" /> <img src="assets/scrolling_images4.gif" alt="GIF 4" width="200" /> </div>

compare

<span style="color:red">Conbined with IP-Adapter and Contorlnet-Pose</span>

compare

compare

<span style="color:red">Support text prompts for different scenes</span>

different scenes

<span style="color:red">Supports outfit changing in specified areas (Experimental Feature)</span>

inpainting

<span style="color:red">Supports generating cartoon-style images (Experimental Feature)</span>

cartoon

🏷️ Introduction

To address the need for flexible and controllable customizations in virtual try-on systems, we propose IMAGDressing-v1. Specifically, we introduce a garment UNet that captures semantic features from CLIP and texture features from VAE. Our hybrid attention module includes a frozen self-attention and a trainable cross-attention, integrating these features into a frozen denoising UNet to ensure user-controlled editing. We will release a comprehensive dataset, IGPair, with over 300,000 pairs of clothing and dressed images, and establish a standard data assembly pipeline. Furthermore, IMAGDressing-v1 can be combined with extensions like ControlNet, IP-Adapter, T2I-Adapter, and AnimateDiff to enhance diversity and controllability.

framework

πŸ”§ Requirements

conda create --name IMAGDressing python=3.11
conda activate IMAGDressing
pip install -U pip


# Install requirements
pip install -r requirements.txt


pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121

🌐 Download Models

You can download our models from HuggingFace or η™ΎεΊ¦δΊ‘. You can download the other component models from the original repository, as follows.

πŸŽ‰ How to Use

<span style="color:red">Important Reminder</span>

1. Random faces and poses to dress the assigned clothes

python inference_IMAGdressing.py --cloth_path [your cloth path]

2. Random faces use a given pose to dress a given outfit

python inference_IMAGdressing_controlnetpose.py --cloth_path [your cloth path] --pose_path [your posture path]

3. Specify the face and posture to wear the specified clothes

python inference_IMAGdressing_ipa_controlnetpose.py --cloth_path [your cloth path] --face_path [your face path] --pose_path [your posture path]

webui

python3 app.py

PixPin_2024-07-25_20-32-20

4. Specify the model to wear the specified clothes (Experimental Feature)

<span style="color:red">Please download the humanparsing and openpose model file from IDM-VTON-Huggingface to the ckpt folder first.</span>

python inference_IMAGdressing_controlnetinpainting.py --cloth_path [your cloth path] --model_path [your model path]

5. Specify the carton style for generate images (Experimental Feature)

python inference_IMAGdressing_counterfeit-v30.py --cloth_path [your cloth path] --model_path [your model path]

πŸ“š Get Involved

Join us on this exciting journey to transform virtual try-on systems. Star⭐️ our repository to stay updated with the latest advancements, and contribute to making IMAGDressing the leading solution for virtual clothing generation.

Acknowledgement

We would like to thank the contributors to the IDM-VTON, MagicClothing, IP-Adapter, ControlNet, T2I-Adapter, and AnimateDiff repositories, for their open research and exploration.

The IMAGDressing code is available for both academic and commercial use. However, the models available for manual and automatic download from IMAGDressing are intended solely for non-commercial research purposes. Similarly, our released checkpoints are restricted to research use only. Users are free to create images using this tool, but they must adhere to local laws and use it responsibly. The developers disclaim any liability for potential misuse by users.

πŸ“ Citation

If you find IMAGDressing-v1 useful for your research and applications, please cite using this BibTeX:

@article{shen2024IMAGDressing-v1,
  title={IMAGDressing-v1: Customizable Virtual Dressing},
  author={Shen, Fei and Jiang, Xin and He, Xin and Ye, Hu and Wang, Cong, and Du, Xiaoyu, Li Zechao, and Tang, Jinghui},
  booktitle={arXiv preprint arXiv:2407.12705},
  year={2024}
}

πŸ•’ TODO List

πŸ“¨ Contact

If you have any questions, please feel free to contact with me at shenfei140721@126.com.