Replies: 4 comments
-
@josh-001 could you share full collab demo please |
Beta Was this translation helpful? Give feedback.
-
https://colab.research.google.com/drive/1GSEf1ua-MklrxC8z8KpRkzLpYRFIDDT1?usp=sharing this is my colab link. |
Beta Was this translation helpful? Give feedback.
-
Hi @josh-001 👋🏻 ! It does not look like a bug related to |
Beta Was this translation helpful? Give feedback.
-
I'll also convert this issue into a discussion and put it in the Q&A section. |
Beta Was this translation helpful? Give feedback.
-
Search before asking
Question
while running yolo-nas and sam for segmentation of my sample video i am getting error as
ERROR:
detections = detections[detections.area == np.max(detections.area)]
---> 62 segmented_mask = mask_annotator.annotate(scene=frame, detections=detections)
63 return segmented_mask
/usr/local/lib/python3.10/dist-packages/supervision/annotators/core.py in annotate(self, scene, detections, custom_color_lookup)
250 )
251 mask = detections.mask[detection_idx]
--> 252 colored_mask[mask] = color.as_bgr()
253
254 scene = cv2.addWeighted(colored_mask, self.opacity, scene, 1 - self.opacity, 0)
IndexError: arrays used as indices must be of integer (or boolean) type
Additional
No response
Beta Was this translation helpful? Give feedback.
All reactions