osimeoni commited on
Commit
bbefb98
1 Parent(s): 853c722

image shape

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -73,8 +73,8 @@ def predict(img_input):
73
  preds_up = (
74
  (sigmoid(preds_up.detach()) > 0.5).squeeze(0).float()
75
  )
76
-
77
- return blend_images(img_pil, T.ToPILImage()(preds_up))
78
 
79
 
80
  title = 'FOUND - unsupervised object localization'
 
73
  preds_up = (
74
  (sigmoid(preds_up.detach()) > 0.5).squeeze(0).float()
75
  )
76
+
77
+ return blend_images(img_pil.resize([img_t.shape[-1], img_t.shape[-2]]), T.ToPILImage()(preds_up))
78
 
79
 
80
  title = 'FOUND - unsupervised object localization'