Patil commited on
Commit
d6a24eb
·
verified ·
1 Parent(s): 96c77cc

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -123
README.md CHANGED
@@ -1,123 +0,0 @@
1
- ---
2
- license: cc-by-nc-sa-4.0
3
-
4
- extra_gated_prompt: "You agree that this model will only be used for non-commercial purposes."
5
- extra_gated_fields:
6
- Name: text
7
- Email: text
8
- Country: country
9
- Organization or Affiliation: text
10
- I agree to use this dataset for non-commercial use ONLY: checkbox
11
- ---
12
-
13
- # FitDiT: Advancing the Authentic Garment Details for High-fidelity Virtual Try-on
14
-
15
- <div style="display: flex; justify-content: center; align-items: center;">
16
- <a href="https://arxiv.org/abs/2411.10499" style="margin: 0 2px;">
17
- <img src='https://img.shields.io/badge/arXiv-2411.10499-red?style=flat&logo=arXiv&logoColor=red' alt='arxiv'>
18
- </a>
19
- <a href="https://github.com/BoyuanJiang/FitDiT" style="margin: 0 2px;">
20
- <img src='https://img.shields.io/badge/GitHub-Repo-blue?style=flat&logo=GitHub' alt='GitHub'>
21
- </a>
22
- <a href="https://huggingface.co/spaces/BoyuanJiang/FitDiT" style="margin: 0 2px;">
23
- <img src='https://img.shields.io/badge/Space-ZeroGPU-orange?style=flat&logo=Gradio&logoColor=red' alt='Demo'>
24
- </a>
25
- <a href="http://demo.fitdit.byjiang.com/" style="margin: 0 2px;">
26
- <img src='https://img.shields.io/badge/Demo-Gradio-gold?style=flat&logo=Gradio&logoColor=red' alt='Demo'>
27
- </a>
28
- <a href='https://huggingface.co/BoyuanJiang/FitDiT' style="margin: 0 2px;">
29
- <img src='https://img.shields.io/badge/Hugging Face-ckpts-orange?style=flat&logo=HuggingFace&logoColor=orange' alt='huggingface'>
30
- </a>
31
- <a href='https://byjiang.com/FitDiT/' style="margin: 0 2px;">
32
- <img src='https://img.shields.io/badge/Webpage-Project-silver?style=flat&logo=&logoColor=orange' alt='webpage'>
33
- </a>
34
- <a href="https://raw.githubusercontent.com/BoyuanJiang/FitDiT/refs/heads/main/LICENSE" style="margin: 0 2px;">
35
- <img src='https://img.shields.io/badge/License-CC BY--NC--SA--4.0-lightgreen?style=flat&logo=Lisence' alt='License'>
36
- </a>
37
- </div>
38
-
39
- **FitDiT** is designed for high-fidelity virtual try-on using Diffusion Transformers (DiT).
40
- <div align="center">
41
- <img src="resource/img/teaser.jpg" width="100%" height="100%"/>
42
- </div>
43
-
44
-
45
- ## Updates
46
- - **`2025/1/9`**: We provide a [**Huggingface Space**](https://huggingface.co/spaces/BoyuanJiang/FitDiT) of FitDiT, thanks for Huggingface community GPU grant for providing the GPU resources.
47
- - **`2024/12/20`**: The FitDiT [**model weight**](https://huggingface.co/BoyuanJiang/FitDiT) is available.
48
- - **`2024/12/17`**: Inference code is released.
49
- - **`2024/12/4`**: Our [**Online Demo**](http://demo.fitdit.byjiang.com/) is released.
50
- - **`2024/11/25`**: Our [**Complex Virtual Dressing Dataset (CVDD)**](https://huggingface.co/datasets/BoyuanJiang/CVDD) is released.
51
- - **`2024/11/15`**: Our [**FitDiT paper**](https://arxiv.org/abs/2411.10499) is available.
52
-
53
-
54
- ## Gradio Demo
55
- Our algorithm is divided into two steps. The first step is to generate the mask of the try-on area, and the second step is to try-on in the mask area.
56
-
57
- ### Step1: Run Mask
58
- You can simpley get try-on mask by click **Step1: Run Mask** at the right side of gradio demo. If the automatically generated mask are not well covered the area where you want to try-on, you can either adjust the mask by:
59
-
60
- 1. Drag the slider of *mask offset top*, *mask offset bottom*, *mask offset left* or *mask offset right* and then click **Step1: Run Mask** button, this will re-generate mask.
61
-
62
- ![mask_offset](resource/img/mask_offset.jpg)
63
-
64
-
65
-
66
- 2. Using the brush or eraser tool to edit the automatically generated mask
67
-
68
- ![manually_adjust](resource/img/manually_adjust.jpg)
69
-
70
- ### Step2: Run Try-on
71
- After generating a suitable mask, you can get the try-on results by click **Step2: Run Try-on**. In the Try-on resolution drop-down box, you can select a suitable processing resolution. In our online demo, the default resolution is 1152x1536, which means that the input model image and garment image will be pad and resized to this resolution before being fed into the model.
72
-
73
-
74
- ## Local Demo
75
- First apply access of FitDiT [model weight](https://huggingface.co/BoyuanJiang/FitDiT), then clone model to *local_model_dir*
76
-
77
- ### Enviroment
78
- We test our model with following enviroment
79
- ```
80
- torch==2.3.0
81
- torchvision==0.18.0
82
- diffusers==0.31.0
83
- transformers==4.39.3
84
- gradio==5.8.0
85
- onnxruntime-gpu==1.20.1
86
- ```
87
-
88
- ### Run gradio locally
89
- ```
90
- # Run model with bf16 without any offload, fastest inference and most memory
91
- python gradio_sd3.py --model_path local_model_dir
92
-
93
- # Run model with fp16
94
- python gradio_sd3.py --model_path local_model_dir --fp16
95
-
96
- # Run model with fp16 and cpu offload, moderate inference and moderate memory
97
- python gradio_sd3.py --model_path local_model_dir --fp16 --offload
98
-
99
- # Run model with fp16 and aggressive cpu offload, slowest inference and less memory
100
- python gradio_sd3.py --model_path local_model_dir --fp16 --aggressive_offload
101
- ```
102
-
103
- ## Star History
104
-
105
- [![Star History Chart](https://api.star-history.com/svg?repos=BoyuanJiang/FitDiT&type=Date)](https://star-history.com/#BoyuanJiang/FitDiT&Date)
106
-
107
- ## Contact
108
- This model can only be used **for non-commercial use**. For commercial use, please visit [Tencent Cloud](https://cloud.tencent.com/document/product/1668/108532) for support.
109
-
110
-
111
- ## Citation
112
- If you find our work helpful for your research, please consider citing our work.
113
- ```
114
- @misc{jiang2024fitditadvancingauthenticgarment,
115
- title={FitDiT: Advancing the Authentic Garment Details for High-fidelity Virtual Try-on},
116
- author={Boyuan Jiang and Xiaobin Hu and Donghao Luo and Qingdong He and Chengming Xu and Jinlong Peng and Jiangning Zhang and Chengjie Wang and Yunsheng Wu and Yanwei Fu},
117
- year={2024},
118
- eprint={2411.10499},
119
- archivePrefix={arXiv},
120
- primaryClass={cs.CV},
121
- url={https://arxiv.org/abs/2411.10499},
122
- }
123
- ```