mosidi commited on
Commit
86adf98
·
1 Parent(s): 85da3c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)