Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import torch
|
|
| 4 |
|
| 5 |
# ⚠️ You can replace this with any try-on model, e.g. akhaliq/TryOnDiffusion
|
| 6 |
model_id = "lllyasviel/TryOnDiffusion" # public
|
| 7 |
-
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16
|
| 8 |
pipe = pipe.to("cuda" if torch.cuda.is_available() else "cpu")
|
| 9 |
|
| 10 |
def try_on(person_img, cloth_img):
|
|
|
|
| 4 |
|
| 5 |
# ⚠️ You can replace this with any try-on model, e.g. akhaliq/TryOnDiffusion
|
| 6 |
model_id = "lllyasviel/TryOnDiffusion" # public
|
| 7 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
| 8 |
pipe = pipe.to("cuda" if torch.cuda.is_available() else "cpu")
|
| 9 |
|
| 10 |
def try_on(person_img, cloth_img):
|