IMAGGarment: Fine-Grained Garment Generation for Controllable Fashion Design

March 13, 2026 ยท View on GitHub

GitHub stars

๐Ÿ—“๏ธ Release

  • [2026/3/4] ๐Ÿ”ฅ IMAGGarment is accepted by TVCG 2026.
  • [2025/4/18] ๐Ÿ”ฅ We released the technical report of IMAGGarment.
  • [2025/4/18] ๐Ÿ”ฅ We release the train and inference code of IMAGGarment.
  • [2025/4/17] ๐ŸŽ‰ We launch the project page of IMAGGarment.

๐Ÿ’ก Introduction

IMAGGarment addresses the challenges of multi-conditional controllability in personalized fashion design and digital apparel applications. Specifically, IMAGGarment employs a two-stage training strategy to separately model global appearance and local details, while enabling unified and controllable generation through end-to-end inference. In the first stage, we propose a global appearance model that jointly encodes silhouette and color using a mixed attention module and a color adapter. In the second stage, we present a local enhancement model with an adaptive appearance-aware module to inject user-defined logos and spatial constraints, enabling accurate placement and visual consistency. architecture

๐Ÿš€ Dataset Demo

dataset_demo

๐Ÿš€ Examples

results_1

Different Colors and Silhouettes

results_2

results_2

More Results

results_2

results_2

๐Ÿ”ง Requirements

conda create --name IMAGGarment python=3.8.8
conda activate IMAGGarment
pip install -U pip

# Install requirements
pip install -r requirements.txt

๐ŸŒ Download Models

You can download our models from ็™พๅบฆไบ‘. You can download the other component models from the original repository, as follows.

๐Ÿš€ How to train

# Please download the GarmentBench data first 
# and modify the path in train_color_adapter.sh, train_stage1.sh and train_stage2.sh

# train color adapter
sh train_color_adapter.sh
# Once training of color adapter is complete, you can convert the weights into the desired format.
python change.py

# train GAM model
sh train_GAM.sh
# train LEM model
sh train_LEM.sh

๐Ÿš€ How to test

python inference_IMAGGarment-1.py \
--GAM_model_ckpt [GAM checkpoint] \
--LEM_model_ckpt [LEM chekcpoint] \
--sketch_path [your sketch path] \
--logo_path [your logo path] \
--mask_path [your mask path] \
--color_path [your color path] \
--prompt [your prompt] \
--output_path [your save path] \
--color_ckpt [color adapter checkpoint] \
--device [your device]

Acknowledgement

We would like to thank the contributors to the IMAGDressing and IP-Adapter repositories, for their open research and exploration.

The IMAGGarment code is available for both academic and commercial use. Users are permitted to generate images using this tool, provided they comply with local laws and exercise responsible use. The developers disclaim all liability for any misuse or unlawful activity by users.

Citation

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

@article{shen2025imaggarment,
  title={IMAGGarment-1: Fine-Grained Garment Generation for Controllable Fashion Design},
  author={Shen, Fei and Yu, Jian and Wang, Cong and Jiang, Xin and Du, Xiaoyu and Tang, Jinhui},
  booktitle={arXiv preprint arXiv:2504.13176},
  year={2025}
}

๐Ÿ•’ TODO List

  • Paper
  • Train Code
  • Inference Code
  • GarmentBench Dataset
  • Model Weights
  • Upgraded Version for High-resolution Images

๐Ÿ‘‰ 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 us at shenfei140721@126.com and jianyu@njust.edu.cn.