Spaces:
Runtime error
Runtime error
Commit
·
37e59b4
1
Parent(s):
438b834
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def segment_image(input_image):
|
|
62 |
|
63 |
fmask = masks_[0].astype(int)
|
64 |
|
65 |
-
resized_mask1 =cv2.resize(fmask
|
66 |
resized_mask1 = (resized_mask1 * 255).astype(np.uint8)
|
67 |
|
68 |
overlay_image1 = img.copy()
|
|
|
62 |
|
63 |
fmask = masks_[0].astype(int)
|
64 |
|
65 |
+
resized_mask1 =cv2.resize(fmask, (target_width, target_height))
|
66 |
resized_mask1 = (resized_mask1 * 255).astype(np.uint8)
|
67 |
|
68 |
overlay_image1 = img.copy()
|