basso4 commited on
Commit
27c37eb
Β·
verified Β·
1 Parent(s): 0af3586

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -185,6 +185,7 @@ if __name__ == "__main__":
185
  img_cv = rearrange(x_checked_image_torch[0], 'c h w -> h w c').cpu().numpy()
186
  img_cv = (img_cv * 255).astype(np.uint8)
187
  img_cv = cv2.cvtColor(img_cv, cv2.COLOR_RGB2BGR)
 
188
 
189
  #mask
190
  mask_cv = mask_cv.convert("L").resize((384,512))
 
185
  img_cv = rearrange(x_checked_image_torch[0], 'c h w -> h w c').cpu().numpy()
186
  img_cv = (img_cv * 255).astype(np.uint8)
187
  img_cv = cv2.cvtColor(img_cv, cv2.COLOR_RGB2BGR)
188
+ img_cv = cv2.resize(img_cv, (384, 512))
189
 
190
  #mask
191
  mask_cv = mask_cv.convert("L").resize((384,512))