Run this model with HF Jobs

Run ArtmeScienceLab/Garments2Look-LoRA on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/ArtmeScienceLab/Garments2Look-LoRA. Ask me which dataset to train on, then push the fine-tuned model to a new private model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/ArtmeScienceLab/Garments2Look-LoRA on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

Garments2Look-LoRA

Task-specific DiffSynth LoRA adapters for Qwen-Image-Edit-2509, Qwen-Image-2.1, and FLUX.3 Image Klein Base, trained for outfit-level virtual try-on with clothing and accessories.

This model repository includes the six adapters, two DiffSynth inference runtimes, one unified inference script, and a paired test example. qwen-runtime is a trimmed DiffSynth 2.1.8 implementation used for the Qwen results; flux3-runtime is unmodified DiffSynth-Studio at commit bbc3fa3, used to train and run the FLUX.3 adapters. The script below supports all three base models; no GitHub update is required to run it.

Checkpoints

Base model Task File Training
Qwen-Image-Edit-2509 Inpainting Qwen-Image-Edit-2509-LoRA-2-refer-20k-inpainting-epoch-1.safetensors 20,000 samples; 2 completed epochs; rank 32
Qwen-Image-Edit-2509 Editing Qwen-Image-Edit-2509-LoRA-2-refer-20k-editing-epoch-1.safetensors 20,000 samples; 2 completed epochs; rank 32
Qwen-Image-2.1 Inpainting Qwen-Image-2.1-LoRA-2-refer-97068-inpainting-epoch-0.safetensors 97,068 samples; 1 completed epoch; final step 48,534; rank 32
Qwen-Image-2.1 Editing Qwen-Image-2.1-LoRA-2-refer-97068-editing-epoch-0.safetensors 97,068 samples; 1 completed epoch; final step 48,534; rank 32
FLUX.3 Image Klein Base Inpainting flux-3-image-klein-base-LoRA-2-refer-97068-inpainting-epoch-0.safetensors 97,068 samples; 1 completed epoch; final step 48,534; rank 32
FLUX.3 Image Klein Base Editing flux-3-image-klein-base-LoRA-2-refer-97068-editing-epoch-0.safetensors 97,068 samples; 1 completed epoch; final step 48,534; rank 32

Epoch numbers are zero-indexed: epoch-1 means two completed epochs, and epoch-0 means one completed epoch. The 2.1 and FLUX.3 files are the final step-48534 checkpoints, not step-48000. The FLUX.3 adapters were trained on black-forest-labs/flux-3-image-klein-base (undistilled), not the 16-step distilled Klein model; use them with the Base model. These are adapters, not full models. Use the matching base model and task. File checksums and training metadata are in manifest.json.

Inputs

Both tasks use the same two-reference interface:

Input Inpainting Editing
Figure 1 Person with clothing regions already masked gray (128) Source person wearing an existing outfit
Figure 2 OOTD collage of target products OOTD collage of target products
Prompt Numbered items, styling, and layering order Numbered items, styling, and layering order

No separate mask argument is passed to inference. Match the numbered items to the collage. For dataset-based inpainting, use the updated v3 masks with dilation. The dataset has 98,012 total records: 97,068 training and 944 test records, with v1.1 annotations and editing source images. See the dataset card for preparation.

Installation and download

Tested with Python 3.10, PyTorch 2.7.1 / CUDA 12.8, Transformers 5.16.1, and H200 GPUs. Run all commands below from the same working directory. Download only the base model you intend to use.

conda create -n g2l-lora python=3.10 -y
conda activate g2l-lora
python -m pip install torch==2.7.1 torchvision==0.22.1 --index-url https://download.pytorch.org/whl/cu128
python -m pip install huggingface_hub
hf download ArtmeScienceLab/Garments2Look-LoRA --local-dir models/Garments2Look-LoRA
python -m zipfile -e models/Garments2Look-LoRA/qwen-runtime.zip models/Garments2Look-LoRA
python -m pip install -e models/Garments2Look-LoRA/qwen-runtime
python -m pip install transformers==5.16.1

hf download Qwen/Qwen-Image-Edit-2509 --local-dir models/Qwen-Image-Edit-2509
hf download Qwen/Qwen-Image-2.1 --local-dir models/Qwen-Image-2.1

# FLUX.3 adapters: extract the separate runtime (no pip install needed) and download the gated Base model
# after accepting the FLUX Kommunity License on its model page (hf auth login).
python -m zipfile -e models/Garments2Look-LoRA/flux3-runtime.zip models/Garments2Look-LoRA
hf download black-forest-labs/flux-3-image-klein-base --local-dir models/flux-3-image-klein-base

From ModelScope instead (apply for access on the model page first, then modelscope login):

python -m pip install modelscope
modelscope download --model JunyaoHu/Garments2Look-LoRA --local_dir models/Garments2Look-LoRA
modelscope download --model Qwen/Qwen-Image-Edit-2509 --local_dir models/Qwen-Image-Edit-2509
modelscope download --model Qwen/Qwen-Image-2.1 --local_dir models/Qwen-Image-2.1
modelscope download --model black-forest-labs/flux-3-image-klein-base --local_dir models/flux-3-image-klein-base

The extraction and pip install steps for the runtimes are the same as above.

The bundled script imports the extracted runtime for the selected model (qwen-runtime or flux3-runtime); both work in the same environment. Adapters use the DiffSynth format; compatibility with other LoRA loaders has not been verified. The Hub diffusers library tag enables download tracking for the root-level safetensors files; it does not indicate verified Diffusers loader compatibility. Set CUDA_VISIBLE_DEVICES to choose a GPU.

Inpainting inference

Qwen-Image-Edit-2509

python models/Garments2Look-LoRA/inference.py --model-version 2509 --task inpainting \
  --model-dir models/Qwen-Image-Edit-2509 \
  --lora models/Garments2Look-LoRA/Qwen-Image-Edit-2509-LoRA-2-refer-20k-inpainting-epoch-1.safetensors \
  --origin models/Garments2Look-LoRA/examples/qwen2509/input-inpainting.png \
  --ootd models/Garments2Look-LoRA/examples/qwen2509/ootd.png \
  --prompt-file models/Garments2Look-LoRA/examples/qwen2509/prompt-inpainting.txt \
  --output output/qwen2509-inpainting.png --seed 0 --steps 40 --cfg-scale 4

Qwen-Image-2.1

python models/Garments2Look-LoRA/inference.py --model-version 2.1 --task inpainting \
  --model-dir models/Qwen-Image-2.1 \
  --lora models/Garments2Look-LoRA/Qwen-Image-2.1-LoRA-2-refer-97068-inpainting-epoch-0.safetensors \
  --origin models/Garments2Look-LoRA/examples/qwen21/input-inpainting.png \
  --ootd models/Garments2Look-LoRA/examples/qwen21/ootd.png \
  --prompt-file models/Garments2Look-LoRA/examples/qwen21/prompt-inpainting.txt \
  --output output/qwen21-inpainting.png --seed 0 --steps 40 --cfg-scale 1

FLUX.3 Image Klein Base

python models/Garments2Look-LoRA/inference.py --model-version flux3 --task inpainting \
  --model-dir models/flux-3-image-klein-base \
  --lora models/Garments2Look-LoRA/flux-3-image-klein-base-LoRA-2-refer-97068-inpainting-epoch-0.safetensors \
  --origin models/Garments2Look-LoRA/examples/flux3/input-inpainting.png \
  --ootd models/Garments2Look-LoRA/examples/flux3/ootd.png \
  --prompt-file models/Garments2Look-LoRA/examples/flux3/prompt-inpainting.txt \
  --output output/flux3-inpainting.png --seed 0 --steps 50 --cfg-scale 3.5

Editing inference

Qwen-Image-Edit-2509

python models/Garments2Look-LoRA/inference.py --model-version 2509 --task editing \
  --model-dir models/Qwen-Image-Edit-2509 \
  --lora models/Garments2Look-LoRA/Qwen-Image-Edit-2509-LoRA-2-refer-20k-editing-epoch-1.safetensors \
  --origin models/Garments2Look-LoRA/examples/qwen2509/input-editing.png \
  --ootd models/Garments2Look-LoRA/examples/qwen2509/ootd.png \
  --prompt-file models/Garments2Look-LoRA/examples/qwen2509/prompt-editing.txt \
  --output output/qwen2509-editing.png --seed 0 --steps 40 --cfg-scale 4

Qwen-Image-2.1

python models/Garments2Look-LoRA/inference.py --model-version 2.1 --task editing \
  --model-dir models/Qwen-Image-2.1 \
  --lora models/Garments2Look-LoRA/Qwen-Image-2.1-LoRA-2-refer-97068-editing-epoch-0.safetensors \
  --origin models/Garments2Look-LoRA/examples/qwen21/input-editing.png \
  --ootd models/Garments2Look-LoRA/examples/qwen21/ootd.png \
  --prompt-file models/Garments2Look-LoRA/examples/qwen21/prompt-editing.txt \
  --output output/qwen21-editing.png --seed 0 --steps 40 --cfg-scale 1

FLUX.3 Image Klein Base

python models/Garments2Look-LoRA/inference.py --model-version flux3 --task editing \
  --model-dir models/flux-3-image-klein-base \
  --lora models/Garments2Look-LoRA/flux-3-image-klein-base-LoRA-2-refer-97068-editing-epoch-0.safetensors \
  --origin models/Garments2Look-LoRA/examples/flux3/input-editing.png \
  --ootd models/Garments2Look-LoRA/examples/flux3/ootd.png \
  --prompt-file models/Garments2Look-LoRA/examples/flux3/prompt-editing.txt \
  --output output/flux3-editing.png --seed 0 --steps 50 --cfg-scale 3.5

Default seed is 0. If steps or CFG are omitted, the script uses 40 steps with CFG 4 for 2509, 40 steps with CFG 1 for 2.1, and 50 steps with CFG 3.5 for FLUX.3 Base (the Base model's default sampling setting). Images use a 1,048,576-pixel budget, aligned to multiples of 16 for 2509 and FLUX.3 and 32 for 2.1. Each invocation saves its PNG and a JSON parameter record. For custom outfits, replace Figure 1, the collage, and the full prompt.

Paired example: P00958796_b1

This five-item test outfit includes a top, jacket, shorts, sandals, and bag. Styling specifies a tucked-in top and an unbuttoned jacket; layering is top β†’ jacket. Both task prompts are supplied in the example folders.

Qwen-Image-Edit-2509 LoRA

2509 inpainting and editing, seed 0

Qwen-Image-2.1 LoRA

2.1 inpainting and editing, final step 48534, seed 0

FLUX.3 Image Klein Base LoRA

FLUX.3 Klein Base inpainting and editing, final step 48534, seed 0

Columns: OOTD, inpainting input, inpainting output, editing input, editing output. Full task prompts are printed below each figure. All images use seed 0: the Qwen models use 40 steps, with CFG 4 for 2509 and CFG 1 for 2.1; FLUX.3 Base uses 50 steps and CFG 3.5. The 2.1 and FLUX.3 images use the final adapters released above. The FLUX.3 images were generated with the same inputs and seed, without re-selecting the outfit.

Full prompt (both tasks):

Keep the woman's identity, pose, background in Figure 1 unchanged, wearing the outfit in Figure 2, include (1) a top (tucked-in), (2) a jacket (unbuttoned), (3) shorts, (4) sandals, (5) a bag. Layering Order: (1) -> (2).

This example was selected after comparing six candidate outfits at fixed seed 0, four outputs per candidate. It illustrates a selected successful case, not aggregate test performance. The two base models were trained on different data counts and epoch counts. Bag shape, garment hems, and pose may still differ. Selection provenance is in examples/selection.json; each output has a parameter JSON, and target images are included.

Training details

Setting 2509 2.1 FLUX.3 Klein Base
Training examples 20,000 Full 97,068 training split Full 97,068 training split
Completed epochs 2 1 1
LoRA rank 32 32 32
Learning rate 1e-4 1e-4 1e-4
Pixel budget 1,048,576 1,048,576 1,048,576
Precision BF16 BF16 BF16
Gradient checkpointing Enabled Enabled Enabled
Final step Epoch-based checkpoint 48,534 48,534

The 2.1 and FLUX.3 runs used two H200 GPUs and global batch size 2. Training took approximately 58h36m (inpainting) and 58h50m (editing) for 2.1, and 25h53m (inpainting) and 25h52m (editing) for FLUX.3. The FLUX.3 runs used the official DiffSynth FLUX.3 training entry with automatic LoRA target detection (all attention and MLP projections; 80.3M adapter parameters), with accelerate.utils.set_seed(42) set before training. These adapters are later releases than the paper's rebuttal-stage models; the selected examples do not establish aggregate improvements over those models.

Training code for all three models is available in the code repository. The Qwen-Image-2.1 training guide includes full-split metadata preparation, a unified training entry point, task-specific launchers for inpainting and editing, and portable Slurm templates matching the released training configuration. The FLUX.3 training guide uses the same metadata and the official DiffSynth FLUX.3 entry bundled in flux3-runtime.zip. Install or extract the bundled runtimes as described above before training.

Repository layout

Garments2Look-LoRA/
β”œβ”€β”€ README.md
β”œβ”€β”€ manifest.json
β”œβ”€β”€ inference.py
β”œβ”€β”€ qwen-runtime.zip
β”œβ”€β”€ flux3-runtime.zip           # DiffSynth-Studio bbc3fa3, incl. FLUX.3 training entry
β”œβ”€β”€ LICENSE-FLUX-Kommunity.md   # applies to the flux-3-image-klein-base-* adapters
β”œβ”€β”€ NOTICE-FLUX.md              # FLUX Attribution Notice and modification statement
β”œβ”€β”€ examples/
β”‚   β”œβ”€β”€ selection.json
β”‚   β”œβ”€β”€ qwen2509/  # inputs, prompts, target, outputs, parameters, comparison
β”‚   β”œβ”€β”€ qwen21/    # same outfit; final 2.1 outputs
β”‚   └── flux3/     # same outfit; final FLUX.3 Base outputs
β”œβ”€β”€ Qwen-Image-Edit-2509-LoRA-2-refer-20k-*-epoch-1.safetensors
β”œβ”€β”€ Qwen-Image-2.1-LoRA-2-refer-97068-*-epoch-0.safetensors
└── flux-3-image-klein-base-LoRA-2-refer-97068-*-epoch-0.safetensors

Limitations and license

Fine accessory details, garment fidelity, styling, layering, and pose preservation vary with input and seed. The showcased example is selected, not an aggregate evaluation. Full base models are required, and their respective licenses apply separately. The bundled DiffSynth code retains its upstream license (Apache 2.0).

  • Qwen adapters: an explicit adapter license has not yet been specified.
  • FLUX.3 Image Klein Base adapters: Derivatives of a FLUX Model, distributed under the FLUX Kommunity License for non-commercial purposes, or commercial use by Qualifying Users as defined there; any rights are granted directly by Black Forest Labs Inc. See NOTICE-FLUX.md. This FLUX Model is licensed by Black Forest Labs Inc. under the FLUX Kommunity License. Copyright Black Forest Labs Inc. We modified it by training LoRA adapters; they are not an official Black Forest Labs product. Users generating outputs under the license must implement the content filtering it requires.

Citation

If you use our dataset or models in your research, please consider citing our paper:

@inproceedings{cvpr2026garments2look,
    title={Garments2Look: A Multi-Reference Dataset for High-Fidelity Outfit-Level Virtual Try-On with Clothing and Accessories},
    author={Hu, Junyao and Cheng, Zhongwei and Wong, Waikeung and Zou, Xingxing},
    booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
    year={2026}
}
Downloads last month
326
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for ArtmeScienceLab/Garments2Look-LoRA

Adapter
(189)
this model

Paper for ArtmeScienceLab/Garments2Look-LoRA