DETR error with using own datasets (TypeError: Detections.__getitem__ not supported for index of type <class 'numpy.ndarray'>.) #327
Replies: 7 comments 9 replies
-
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.
-
@Yamiloveme for first hello and could you change supervision version to latest !pip install -i https://test.pypi.org/simple/ supervision==0.3.0. you were using pretty old one. As much as I wanted to help you, it would be better you switch to latest version so we can test and if possible share the collab you "used" with errors and etc. So we can also see easier and help us to understand better. |
Beta Was this translation helpful? Give feedback.
-
Hi @Yamiloveme 👋🏻! I think @onuralpszr is right! Try to update In the meantime, I will also convert that issue into a discussion and move it into the Q/A section. |
Beta Was this translation helpful? Give feedback.
-
Hi, I have been running to this issue with either versions of supervision suggested (i.e. supervision==0.13.0 and supervision==0.3.0). I realized that the error is thrown when there is no detection in the result set. So when the result is empty this error is thrown, perhaps something to consider for further testing and future releases. |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Hi, I also encountered the same issue, and I'm using supervision==0.13.0 |
Beta Was this translation helpful? Give feedback.
-
For those stumbling upon this, check out https://colab.research.google.com/drive/1bg95DuiQA8EZt4QRymk3PxtseSU5Jkwa#scrollTo=Ts6bI87iTZzY We shall be updating the notebook with this one in |
Beta Was this translation helpful? Give feedback.
-
Search before asking
Question
I have used my own dataset and got annotations using roboflow.
I got this error can you please resolve this
--> 243 raise TypeError(
244 f"Detections.getitem not supported for index of type {type(index)}."
245 )
TypeError: Detections.getitem not supported for index of type <class 'numpy.ndarray'>.
I just change the dataset to durian detection dataset which is found from roboflow universe.
https://universe.roboflow.com/princess-chulabhorn-science-high-school-nakhon-si-thammarat/duriandetection
All the code remain the same except the dataset code.
https://colab.research.google.com/drive/1Ck8gCfZWbvNwk6C-VJTiyqaYkEueasxg?usp=sharing
Additional
No response
Beta Was this translation helpful? Give feedback.
All reactions