IMAGDressing

muzishenApache-2.0长期未更新

基于扩散模型的虚拟试衣方案,可自定义服装、姿态和场景生成高保真人物图,并保持服装细节一致。

[AAAI 2025]👔IMAGDressing👔: Interactive Modular Apparel Generation for Virtual Dressing. It enables customizable human image generation with flexible garment, pose, and scene control, ensuring high fidelity and garment consistency for virtual dressing.

暂无版本1,344star117fork同步于 2026-11-07 07:30 UTC

怎么上手

由 README 提炼,执行前请确认
conda create --name IMAGDressing python=3.8.10
conda activate IMAGDressing
pip install -U pip
pip install -r requirements.txt
硬件要求按 README 说明

README 未明确给出显存要求;要求 PyTorch >= 2.0.0 与 cuda 11.8,即需 NVIDIA GPU 环境,未提及 CPU 运行或具体显卡型号

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

AAAI 2025 虚拟试衣项目,用服装图生成可控姿态与场景的模特穿搭图

基于扩散模型的虚拟试衣方案,可自定义服装、姿态和场景生成高保真人物图,并保持服装细节一致。

核心能力

  • 用服装 UNet 融合 CLIP 语义与 VAE 纹理特征
  • 混合注意力含冻结自注意力与可训练交叉注意力
  • 兼容 IP-Adapter、ControlNet、T2I-Adapter、AnimateDiff
  • 无需额外 LoRA 训练即可在数秒内完成定制
  • 发布 IGPair 数据集与 CAMI 评估指标代码

容易踩的坑

需自行从 HuggingFace 或百度云下载主模型及 sd-vae-ft-mse、IP-Adapter-FaceID、control_v11p_sd15_openpose 等组件模型;换装与卡通风格为实验特性,换装还需额外下载 humanparsing 和 openpose 模型到 ckpt 目录;Gradio 界面需额外安装 modelscope==1.15.0、mmcv-full==1.7.2、mmdet==2.26.0,默认端口 7860

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    👔IMAGDressing👔: Interactive Modular Apparel Generation for Virtual Dressing

    📦️ Release

    • [2025/05/30] 🔥 The supplementary materials for IMAGDressing-v1 are available here.
    • [2024/12/10] 🔥 IMAGDressing-v1 is accepted by AAAI 2025.
    • [2024/08/24] 🔥 We add the train code, feel free to give it a try!
    • [2024/08/23] 🔥 We release the IGPair dataset publicly available for download.
    • [2024/07/30] 🔥 We release the WebUI Code for gradio interface.
    • [2024/07/26] 🔥 We release the online webui,thanks to ZeroGPU for providing free A100 GPUs. And the original Gradio_demo is soon to be deprecated.
    • [2024/07/19] 🔥 We release the code and examples for cartoon-style virtual dressing.
    • [2024/07/18] 🔥 We release the technical report of IMAGDressing-v1 and CAMI metric code.
    • [2024/07/16] 🔥 We add the batch inference for full VD and VTON. Thanks @ZhaoChaoqun for the contribution.
    • [2024/07/01] 🔥 We release the test cases in the assets/images directory.
    • [2024/06/21] 🔥 We release the inpainting feature to enable outfit changing. Experimental Feature.
    • [2024/06/13] 🔥 We release the Gradio_demo of IMAGDressing-v1 (Service deprecation imminent).
    • [2024/05/28] 🔥 We release the inference code of SD1.5 that is compatible with IP-Adapter and ControlNet.
    • [2024/05/08] 🔥 We launch the project page of IMAGDressing-v1.

    IMAGDressing-v1: Customizable Virtual Dressing

    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.

    🔥 Dataset Demo

    You can download the dataset from Baidu Cloud or Huggingface Dataset. By requesting access, you agree to use the data only for academic and personal purposes and not for commercial use.

    Dataset Demo

    🔥 Examples

    compare

    Conbined with IP-Adapter and Controlnet-Pose

    compare

    compare

    Support text prompts for different scenes

    different scenes

    Supports outfit changing in specified areas (Experimental Feature)

    inpainting

    Supports generating cartoon-style images (Experimental Feature)

    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.8.10
    conda activate IMAGDressing
    pip install -U pip
    
    # Install requirements
    pip install -r requirements.txt
    

    🌐 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 Train

    # Please download the IGPair data first and modify the path in run.sh
    sh run.sh
    

    🎉 How to Test

    Important Reminder

    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]
    

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

    Please download the humanparsing and openpose model file from IDM-VTON-Huggingface to the ckpt folder first.

    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]
    

    🎉 How to Eval

    Evaluating the CAMI-U score

    Please use our inference_IMAGdressing.py to generate model images. Then, generate the cloth_mask based on the model image. You can use the Self-Correction-Human-Parsing to generate cloth mask. Finally, use the following code to evaluate the score for image generation without specified pose, face, and text scenarios.

    python metric/eval.py
    

    Evaluating the CAMI-S score

    First, use inference_IMAGdressing_ipa_controlnetpose.py to generate model images. Then, generate the cloth mask based on the model image. Finally, use the following code to evaluate the image generation score for specified pose, face, and text scenarios.

    python metric/eval_s.py
    

    🤗Gradio interface 🤗

    We also provide a Gradio interface for a better experience, just run by:

    pip install modelscope==1.15.0
    pip install mmcv-full==1.7.2
    pip install mmdet==2.26.0
    
    python app.py  --model_weight $MODEL PATH --server_port  7860
    

    You can specify the --server_port arguments to satisfy your needs!

    Or, try it out effortlessly on HuggingFace 🤗

    📚 Get Involved

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

    Third-party Implementations of IMAGDressing-v1:

    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, Jinhui},
      booktitle={arXiv preprint arXiv:2407.12705},
      year={2024}
    }
    

    🕒 TODO List

    • Gradio demo
    • Inference code
    • Model weights (512 sized version)
    • Support inpaint
    • Model weights (More higher sized version)
    • Paper
    • Evaluate metric code
    • IGPair dataset
    • Training code
    • Video Dressing
    • Others, such as User-Needed Requirements

    👉 Our other projects:

    • IMAGEdit: Training-Free Controllable Video Editing with Consistent Object Layout. [可控多目标图像编辑]
    • IMAGDressing: Controllable dressing generation. [可控穿衣生成]
    • IMAGGarment: Fine-grained controllable garment generation. [可控服装生成]
    • IMAGHarmony: Controllable image editing with consistent object layout. [可控多目标图像编辑]
    • IMAGPose: Pose-guided person generation with high fidelity. [可控多模式人物生成]
    • RCDMs: Rich-contextual conditional diffusion for story visualization. [可控故事生成]
    • PCDMs: Progressive conditional diffusion for pose-guided image synthesis. [可控人物生成]
    • V-Express: Explores strong and weak conditional relationships for portrait video generation. [可控数字人生成]
    • FaceShot: Talkingface plugin for any character. [可控动漫数字人生成]
    • CharacterShot: Controllable and consistent 4D character animation framework. [可控4D角色生成]
    • StyleTailor: An Agent for personalized fashion styling. [个性化时尚Agent]
    • SignVip: Controllable sign language video generation. [可控手语生成]

    📨 Contact

    If you have any questions, please feel free to contact with me at [email protected].