You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in display_instances(image, boxes, masks, ids, names, scores)
35 # apply mask for the image
36 # by mistake you put apply_mask inside for loop or you can write continue in if also
---> 37 image = apply_mask(image, mask)
38
39 return image
UnboundLocalError: local variable 'mask' referenced before assignment
The text was updated successfully, but these errors were encountered:
UnboundLocalError Traceback (most recent call last)
in ()
1 results = model.detect([image], verbose=0)
2 r = results[0]
----> 3 frame = display_instances(image, r['rois'], r['masks'], r['class_ids'], class_names, r['scores'])
4 cv2_imshow(frame)
5
in display_instances(image, boxes, masks, ids, names, scores)
35 # apply mask for the image
36 # by mistake you put apply_mask inside for loop or you can write continue in if also
---> 37 image = apply_mask(image, mask)
38
39 return image
UnboundLocalError: local variable 'mask' referenced before assignment
The text was updated successfully, but these errors were encountered: