Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -138,7 +138,7 @@ def inference(image_url, image, min_score):
|
|
| 138 |
measurements = {}
|
| 139 |
|
| 140 |
for ind,item_mask in enumerate(masks):
|
| 141 |
-
if segmentation[1].any() and segmentation[0].any()
|
| 142 |
# box=bbox[ind]
|
| 143 |
# Get the true bounding box of the mask (not the same as the bbox prediction)
|
| 144 |
segmentation = np.where(item_mask == True)
|
|
|
|
| 138 |
measurements = {}
|
| 139 |
|
| 140 |
for ind,item_mask in enumerate(masks):
|
| 141 |
+
if segmentation[1].any() and segmentation[0].any():
|
| 142 |
# box=bbox[ind]
|
| 143 |
# Get the true bounding box of the mask (not the same as the bbox prediction)
|
| 144 |
segmentation = np.where(item_mask == True)
|