Spaces:
Runtime error
Runtime error
yisol
commited on
Commit
β’
6bb5ede
1
Parent(s):
6de0e51
add auto crop
Browse files
app.py
CHANGED
@@ -130,7 +130,7 @@ def start_tryon(dict,garm_img,garment_des,is_checked,is_checked_crop,denoise_ste
|
|
130 |
pipe.unet_encoder.to(device)
|
131 |
|
132 |
garm_img= garm_img.convert("RGB").resize((768,1024))
|
133 |
-
human_img_orig = dict["background"].
|
134 |
|
135 |
if is_checked_crop:
|
136 |
width, height = human_img_orig.size
|
|
|
130 |
pipe.unet_encoder.to(device)
|
131 |
|
132 |
garm_img= garm_img.convert("RGB").resize((768,1024))
|
133 |
+
human_img_orig = dict["background"].convert("RGB")
|
134 |
|
135 |
if is_checked_crop:
|
136 |
width, height = human_img_orig.size
|