Replies: 4 comments
|
@josh-001 could you share full collab demo please |
0 replies
|
https://colab.research.google.com/drive/1GSEf1ua-MklrxC8z8KpRkzLpYRFIDDT1?usp=sharing this is my colab link. |
0 replies
|
Hi @josh-001 👋🏻 ! It does not look like a bug related to |
0 replies
|
I'll also convert this issue into a discussion and put it in the Q&A section. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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
All reactions