Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -221,8 +221,8 @@ def model_infer(img_name):
|
|
221 |
image, mask = input
|
222 |
|
223 |
image_vis = image.transpose(1, 2, 0)
|
224 |
-
gt_mask = mask[0]
|
225 |
-
|
226 |
pr_mask = (output[0].numpy() > threshold).astype('uint8')[0]
|
227 |
i = i + 1
|
228 |
if i >= break_at:
|
|
|
221 |
image, mask = input
|
222 |
|
223 |
image_vis = image.transpose(1, 2, 0)
|
224 |
+
#gt_mask = mask[0]
|
225 |
+
gt_mask = mask[0].astype('uint8')
|
226 |
pr_mask = (output[0].numpy() > threshold).astype('uint8')[0]
|
227 |
i = i + 1
|
228 |
if i >= break_at:
|