Spaces:
Runtime error
Runtime error
fix misc bug
Browse files- README.md +6 -0
- example/github.jpg +0 -0
- requirements.txt +1 -1
- tryon_inference.py +0 -2
README.md
CHANGED
|
@@ -27,11 +27,14 @@ Hugging Face: 🤗 [catvton-flux-alpha](https://huggingface.co/xiaozaa/catvton-f
|
|
| 27 |
The model weights are trained on the [VITON-HD](https://github.com/shadow2496/VITON-HD) dataset.
|
| 28 |
|
| 29 |
## Prerequisites
|
|
|
|
|
|
|
| 30 |
```bash
|
| 31 |
bash
|
| 32 |
conda create -n flux python=3.10
|
| 33 |
conda activate flux
|
| 34 |
pip install -r requirements.txt
|
|
|
|
| 35 |
```
|
| 36 |
|
| 37 |
## Usage
|
|
@@ -49,7 +52,10 @@ Run the following command to start a gradio demo:
|
|
| 49 |
```bash
|
| 50 |
python app.py
|
| 51 |
```
|
|
|
|
| 52 |
|
|
|
|
|
|
|
| 53 |
|
| 54 |
## TODO:
|
| 55 |
- [x] Release the FID score
|
|
|
|
| 27 |
The model weights are trained on the [VITON-HD](https://github.com/shadow2496/VITON-HD) dataset.
|
| 28 |
|
| 29 |
## Prerequisites
|
| 30 |
+
Make sure you are runing the code with VRAM >= 40GB. (I run all my experiments on a 80GB GPU, lower VRAM will cause OOM error. Will support lower VRAM in the future.)
|
| 31 |
+
|
| 32 |
```bash
|
| 33 |
bash
|
| 34 |
conda create -n flux python=3.10
|
| 35 |
conda activate flux
|
| 36 |
pip install -r requirements.txt
|
| 37 |
+
huggingface-cli login
|
| 38 |
```
|
| 39 |
|
| 40 |
## Usage
|
|
|
|
| 52 |
```bash
|
| 53 |
python app.py
|
| 54 |
```
|
| 55 |
+
Gradio demo:
|
| 56 |
|
| 57 |
+
<!-- Option 2: Using a thumbnail linked to the video -->
|
| 58 |
+
[](example/github.mp4)
|
| 59 |
|
| 60 |
## TODO:
|
| 61 |
- [x] Release the FID score
|
example/github.jpg
ADDED
|
requirements.txt
CHANGED
|
@@ -24,7 +24,6 @@ fsspec==2024.6.1
|
|
| 24 |
gitdb==4.0.11
|
| 25 |
GitPython==3.1.43
|
| 26 |
hjson==3.1.0
|
| 27 |
-
huggingface-hub==0.24.5
|
| 28 |
humanfriendly==10.0
|
| 29 |
idna==3.7
|
| 30 |
importlib_metadata==8.2.0
|
|
@@ -97,4 +96,5 @@ bitsandbytes==0.44.1
|
|
| 97 |
gradio==5.6.0
|
| 98 |
gradio_client==1.4.3
|
| 99 |
prodigyopt
|
|
|
|
| 100 |
git+https://github.com/huggingface/diffusers.git
|
|
|
|
| 24 |
gitdb==4.0.11
|
| 25 |
GitPython==3.1.43
|
| 26 |
hjson==3.1.0
|
|
|
|
| 27 |
humanfriendly==10.0
|
| 28 |
idna==3.7
|
| 29 |
importlib_metadata==8.2.0
|
|
|
|
| 96 |
gradio==5.6.0
|
| 97 |
gradio_client==1.4.3
|
| 98 |
prodigyopt
|
| 99 |
+
huggingface-hub
|
| 100 |
git+https://github.com/huggingface/diffusers.git
|
tryon_inference.py
CHANGED
|
@@ -104,8 +104,6 @@ def main():
|
|
| 104 |
image_path=args.image,
|
| 105 |
mask_path=args.mask,
|
| 106 |
garment_path=args.garment,
|
| 107 |
-
output_garment_path=args.output_garment,
|
| 108 |
-
output_tryon_path=args.output_tryon,
|
| 109 |
num_steps=args.steps,
|
| 110 |
guidance_scale=args.guidance_scale,
|
| 111 |
seed=args.seed,
|
|
|
|
| 104 |
image_path=args.image,
|
| 105 |
mask_path=args.mask,
|
| 106 |
garment_path=args.garment,
|
|
|
|
|
|
|
| 107 |
num_steps=args.steps,
|
| 108 |
guidance_scale=args.guidance_scale,
|
| 109 |
seed=args.seed,
|