Downloads · 30 days
0
bytedance-research/Dreamfit
Dreamfit is a machine learning model from bytedance-research. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
0
Access
Public
Updated May 5, 2025
Repo size
6.1 GB
Likes
13
Public
Click a slice to open those files.
.ckpt5.3 GB · 86%
From the Hugging Face model README
Ente Lin†, Xujie Zhang†, Fuwei Zhao, Yuxuan Luo, Xin Dong, Long Zeng*, Xiaodan Liang*
arxiv][Paper]git clone https://github.com/bytedance/DreamFit.git
conda create -n dreamfit python==3.10
conda activate dreamfit
pip install -r requirements.txt
pip install flash-attn --no-build-isolation --use-pep517
pretrained_models folder.pretrained_models. If you want to generate images of different styles, you can download the corresponding stylized model, such as RealisticVision, to pretrained_models.pretrained_models folderpretrained_models folderThe folder structures should look like these:
├── pretrained_models/
| ├── flux_i2i_with_pose.bin
│ ├── flux_i2i.bin
│ ├── flux_tryon.bin
│ ├── sd15_i2i.ckpt
| ├── stable-diffusion-v1-5/
| | ├── ...
| ├── sd-vae-ft-mse/
| | ├── diffusion_pytorch_model.bin
| | ├── ...
| ├── Realistic_Vision_V6.0_B1_noVAE(or other stylized model)/
| | ├── unet/
| | | ├── diffusion_pytorch_model.bin
| | | ├── ...
| | ├── ...
| ├── Annotators/
| | ├── body_pose_model.pth
| | ├── facenet.pth
| | ├── hand_pose_model.pth
| ├── FLUX.1-dev/
| | ├── flux1-dev.safetensors
| | ├── ae.safetensors
| | ├── tokenizer
| | ├── tokenizer_2
| | ├── text_encoder
| | ├── text_encoder_2
| | ├── ...
# inference with FLUX version
bash run_inference_dreamfit_flux_i2i.sh \
--cloth_path example/cloth/cloth_1.png \
--image_text "A woman wearing a white Bape T-shirt with a colorful ape graphic and bold text." \
--save_dir "." \
--seed 164143088151
# inference with StableDiffusion1.5 version
bash run_inference_dreamfit_sd15_i2i.sh \
--cloth_path example/cloth/cloth_3.jpg\
--image_text "A woman with curly hair wears a pink t-shirt with a logo and white stripes on the sleeves, paired with white trousers, against a plain white background."\
--ref_scale 1.0 \
--base_model pretrained_models/Realistic_Vision_V6.0_B1_noVAE/unet/diffusion_pytorch_model.bin \
--base_model_load_method diffusers \
--save_dir "." \
--seed 28
Tips:
--help to check the meaning of each argument.bash run_inference_dreamfit_flux_i2i_with_pose.sh \
--cloth_path example/cloth/cloth_1.png \
--pose_path example/pose/pose_1.jpg \
--image_text "A woman wearing a white Bape T-shirt with a colorful ape graphic and bold text." \
--save_dir "." \
--seed 16414308815
<table style="width:100%; text-align:center;">
<tr>
<th style="text-align:center;">Image Text</th>
<th style="text-align:center;">Cloth</th>
<th style="text-align:center;">Pose Image</th>
<th style="text-align:center;">Output</th>
</tr>
<tr>
<td style="text-align:center;">A woman wearing a white Bape T-shirt with a colorful ape graphic and bold text.</td>
<td style="text-align:center;">
<img src="./example/cloth/cloth_1.png" alt="alt text" style="max-height:600px;">
</td>
<td style="text-align:center;">
<img src="./example/pose/pose_1.jpg" alt="alt text" style="max-height:600px;">
</td>
<td style="text-align:center;">
<img src="./static/showcase/garment_with_pose.png" alt="alt text" style="max-height:600px;">
</td>
</tr>
</table>
bash run_inference_dreamfit_flux_tryon.sh \
--cloth_path example/cloth/cloth_1.png \
--keep_image_path example/tryon/keep_image_4.png \
--image_text "A woman wearing a white Bape T-shirt with a colorful ape graphic and bold text and a blue jeans." \
--save_dir "." \
--seed 16414308815
Tips:
Most images used in this repository are sourced from the Internet. These images are solely intended to demonstrate the capabilities of our research. If you have any concerns, please contact us, and we will promptly remove any inappropriate content.
This project aims to make a positive impact on the field of AI-driven image generation. Users are free to create images using this tool, but they must comply with local laws and use it responsibly. The developers do not assume any responsibility for potential misuse by users.
@article{lin2024dreamfit,
title={DreamFit: Garment-Centric Human Generation via a Lightweight Anything-Dressing Encoder},
author={Lin, Ente and Zhang, Xujie and Zhao, Fuwei and Luo, Yuxuan and Dong, Xin and Zeng, Long and Liang, Xiaodan},
journal={arXiv preprint arXiv:2412.17644},
year={2024}
}
Thanks to x-flux and Moore-AnimateAnyone repositories, for their open research and exploration.
If you have any comments or questions, please open a new issue or feel free to contact Ente Lin and Xin Dong.