image shape
Browse files
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'
|