How to create empty Detections object? #48
Unanswered
adrianboguszewski
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Hi, @adrianboguszewski 👋🏻! Sorry for the late reply. I was on a short vacation. Currently, it is only possible to create empty detection like this: Detections(
xyxy=np.empty((0, 4), dtype=np.float32),
confidence=np.array([], dtype=np.float32),
class_id=np.array([], dtype=int)
) Would you be satisfied with some code sugar like this: |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the answer. It wasn't so late :) Yeah, I think |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to deal with the situation when nothing is detected? Currently, there is no possibility to create a Detections object with empty arrays.
Beta Was this translation helpful? Give feedback.
All reactions