Replies: 4 comments
-
Hello there, thank you for opening an Issue ! 🙏🏻 The team was notified and they will get back to you asap. |
Beta Was this translation helpful? Give feedback.
-
Hello @hsauod, please share your code or collab, and what's is your supervision version ? |
Beta Was this translation helpful? Give feedback.
-
Hi, @hsauod 👋🏻 As @onuralpszr mentioned, to help you, we will need code to reproduce the bug, preferably in the form of Google Colab. |
Beta Was this translation helpful? Give feedback.
-
I moving this issue to under Q&A for continue |
Beta Was this translation helpful? Give feedback.
-
Search before asking
Question
Hi, thank you for your amazing working!
When I change my mask annotator to mask_annotator = sv.MaskAnnotator(color_lookup = sv.ColorLookup.INDEX) as you mentioned in the issues, I still got error
/usr/local/lib/python3.10/dist-packages/supervision/annotators/core.py in annotate(self, scene, detections, custom_color_lookup)
163 colored_mask = np.zeros_like(scene, dtype=np.uint8)
164 colored_mask[:] = color.as_bgr()
--> 165 scene[mask] = cv2.addWeighted(
166 colored_mask, self.opacity, scene, 1 - self.opacity, 0
167 )[mask]
IndexError: arrays used as indices must be of integer (or boolean) type
Thank you in advance.
Additional
No response
Beta Was this translation helpful? Give feedback.
All reactions