rizavelioglu
commited on
Commit
·
f03bf14
1
Parent(s):
4310611
update README
Browse files
README.md
CHANGED
|
@@ -2,4 +2,66 @@
|
|
| 2 |
license: other
|
| 3 |
license_name: server-side-public-license
|
| 4 |
license_link: https://www.mongodb.com/legal/licensing/server-side-public-license
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
license: other
|
| 3 |
license_name: server-side-public-license
|
| 4 |
license_link: https://www.mongodb.com/legal/licensing/server-side-public-license
|
| 5 |
+
tags:
|
| 6 |
+
- diffusion
|
| 7 |
+
- virtual try-on
|
| 8 |
+
- virtual try-off
|
| 9 |
+
- image generation
|
| 10 |
+
- fashion
|
| 11 |
+
- e-commerce
|
| 12 |
+
base_model:
|
| 13 |
+
- CompVis/stable-diffusion-v1-4
|
| 14 |
+
pipeline_tag: image-to-image
|
| 15 |
+
library_name: diffusers
|
| 16 |
---
|
| 17 |
+
|
| 18 |
+
## TryOffDiff
|
| 19 |
+
|
| 20 |
+
The models proposed in the paper _"TryOffDiff: Virtual-Try-Off via High-Fidelity Garment Reconstruction\\using Diffusion Models"_
|
| 21 |
+
[[paper]](https://arxiv.org/abs/2404.08582) [[project page]][project_page]:
|
| 22 |
+
- `tryoffdiff.pth`: The pre-trained StableDiffusion-v1.4 fine-tuned on `VITON-HD-train` dataset.
|
| 23 |
+
- `.pth`: A U-Net trained from scratch on `VITON-HD-train` dataset.
|
| 24 |
+
- `.pth`:
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
## Usage
|
| 28 |
+
|
| 29 |
+
```python
|
| 30 |
+
from torchvision.io import read_image
|
| 31 |
+
from torchvision.models.detection import MaskRCNN_ResNet50_FPN_Weights
|
| 32 |
+
from huggingface_hub import hf_hub_download
|
| 33 |
+
|
| 34 |
+
path_onnx = hf_hub_download(
|
| 35 |
+
repo_id="rizavelioglu/tryoffdiff",
|
| 36 |
+
filename="tryoffdiff.pth", # or one of ["ldm-1", "ldm-2", "ldm-3", ...]
|
| 37 |
+
)
|
| 38 |
+
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
> Check out the demo code on [HuggingFace Spaces][hf_spaces] for visualizing the output.
|
| 42 |
+
|
| 43 |
+
> Also, check out [GitHub repository][project_page] to get more information on
|
| 44 |
+
> training, inference, and evaluation.
|
| 45 |
+
|
| 46 |
+
### License
|
| 47 |
+
TL;DR: Not available for commercial use, unless the FULL source code is shared! \
|
| 48 |
+
This project is intended solely for academic research. No commercial benefits are derived from it.
|
| 49 |
+
Models are licensed under [Server Side Public License (SSPL)][license]
|
| 50 |
+
|
| 51 |
+
### Citation
|
| 52 |
+
If you find this repository useful in your research, please consider giving a star ⭐ and a citation:
|
| 53 |
+
```
|
| 54 |
+
@article{velioglu2024tryoffdiff,
|
| 55 |
+
title = {TryOffDiff: Virtual-Try-Off via High-Fidelity Garment Reconstruction using Diffusion Models},
|
| 56 |
+
author = {Velioglu, Riza and Bevandic, Petra and Chan, Robin and Hammer, Barbara},
|
| 57 |
+
journal = {arXiv},
|
| 58 |
+
year = {2024},
|
| 59 |
+
note = {\url{https://doi.org/....}}
|
| 60 |
+
}
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
[hf_spaces]: https://huggingface.co/spaces/rizavelioglu/tryoffdiff
|
| 64 |
+
[project_page]: https://rizavelioglu.github.io/tryoffdiff/
|
| 65 |
+
[github]: https://github.com/rizavelioglu/tryoffdiff
|
| 66 |
+
[license]: https://www.mongodb.com/legal/licensing/server-side-public-license
|
| 67 |
+
|