Downloads · 30 days
0
zhengchong/FastFit-MR-1024
FastFit-MR-1024 is a image-to-image model from zhengchong. Use it when you need one image transformed into another. It is set up for diffusers. The card lists the license as other.
<h1 align="center" FastFit: Accelerating Multi-Reference Virtual Try-On via Cacheable Diffusion Models </h1
Downloads · 30 days
0
Access
Public
Updated Jan 4, 2026
Parameters
816M
2 GB on disk
Likes
4
Public
Click a slice to open those files.
.safetensors1.6 GB · 83%
From the Hugging Face model README
FastFit is a diffusion-based framework optimized for high-speed, multi-reference virtual try-on. It enables simultaneous try-on of multiple fashion items—such as tops, bottoms, dresses, shoes, and bags—on a single person. The framework leverages reference KV caching during inference to significantly accelerate generation.
2025/08/29: 📄 We release the arXiv paper of FastFit!2025/08/06: ⚙️ We release the code for inference and evaluation on the DressCode-MR, DressCode, and VITON-HD test datasets.2025/08/05: 🧩 We release the ComfyUI workflow for FastFit!2025/08/04: 🚀 Our gradio demo is online with Chinese & English support! The code of the demo is also released in app.py.2025/07/03: 🎉 We release the weights of FastFit-MR and FastFit-SR model on Hugging Face!2025/06/24: 👕 We release DressCode-MR dataset with 28K+ Multi-reference virtual try-on Samples on Hugging Face!DressCode-MR is constructed based on the DressCode dataset with 28K+ Multi-reference virtual try-on Samples.
DressCode-MR is released under the exact same license as the original DressCode dataset. Therefore, before requesting access to DressCode-MR dataset, you must complete the following steps:
conda create -n fastfit python=3.10
conda activate fastfit
pip install -r requirements.txt
pip install easy-dwpose --no-dependencies # to resolve the version conflict
# if error occurs for av, try:
conda install -c conda-forge av
ComfyUI/custom_nodes/ directory.cd Your_ComfyUI_Dir/custom_nodes
git clone https://github.com/Zheng-Chong/FastFit.git
cd FastFit
pip install -r requirements.txt
pip install easy-dwpose --no-dependencies # to resolve the version conflict
# if error occurs for av, try:
conda install -c conda-forge av
cd Your_ComfyUI_Dir/custom_nodes
git clone https://github.com/rgthree/rgthree-comfy.git
cd rgthree-comfy
pip install -r requirements.txt
The model weights will be automatically downloaded from Hugging Face when you run the demo.
python app.py
To perform inference on the DressCode-MR, DressCode, or VITON-HD test datasets, use the infer_datasets.py script, for example:
python infer_datasets.py \
--dataset <dataset_name> \
--data_dir </path/to/your/dataset> \
--batch_size 4 \
--num_inference_steps 50 \
--guidance_scale 2.5 \
--mixed_precision bf16 \
--paired
--dataset: Specify the target dataset. Choose from dresscode-mr, dresscode, or viton-hd.
--data_dir: The root directory path for the specified dataset.
--paired: Include this flag to run inference in the paired setting. Omit this flag for the unpaired setting.
By default, inference results will be saved to the results/ directory at the project root.
After inference, use the eval.py script to ecalculate the evaluation metrics:
python eval.py \
--gt_folder </path/to/ground_truth_folder> \
--pred_folder </path/to/prediction_folder> \
--paired \
--batch_size 16 \
--num_workers 4
--gt_folder: The directory path containing the ground truth images.
--pred_folder: The directory path containing the generated (predicted) images from the inference step.
--paired: Include this flag to evaluate results from the paired setting. Omit this flag for the unpaired setting.
@misc{chong2025fastfitacceleratingmultireferencevirtual,
title={FastFit: Accelerating Multi-Reference Virtual Try-On via Cacheable Diffusion Models},
author={Zheng Chong and Yanwei Lei and Shiyue Zhang and Zhuandi He and Zhen Wang and Xujie Zhang and Xiao Dong and Yiling Wu and Dongmei Jiang and Xiaodan Liang},
year={2025},
eprint={2508.20586},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2508.20586},
}
Our code is modified based on Diffusers. We adopt Stable Diffusion v1.5 inpainting as the base model. We use a modified AutoMasker to automatically generate masks in our Gradio App and ComfyUI workflow. Thanks to all the contributors!
All weights, parameters, and code related to FastFit are governed by the FastFit Non-Commercial License. For commercial collaboration, please contact LavieAI.