Spaces:
kadirnar
/
Runtime error

yisol commited on
Commit
6bb5ede
β€’
1 Parent(s): 6de0e51

add auto crop

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"].resize((768,1024)).convert("RGB")
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