Replies: 1 comment
-
|
Discussed in #673 |
Beta Was this translation helpful? Give feedback.
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am working on the Snapshot Serengeti camera trap dataset for animal detection. The images have anywhere between 0 and more than 50 bounding boxes identifying animal locations. Is there a way in croissant to represent multiple bounding boxes within a single image?
The COCO example with bounding box on the croissant repo only handles 1 bounding box per image. When I try to follow similar logic, where I create a dictionary enumerating the bounding boxes, I get a read error with message "ValueError: All arrays must be of the same length".
Here's a snippet of my json annotation file:
Here's what my jsonl looks like:
The fact that image "0" has one bbox and image "1" has two is why I'm getting the error and I don't known if there's any fix. I initially tried to but all the bounding boxes into a list (i.e., a list of lists) since the order does matter but obviously the resulting list wasn't of data type BOUNDING_BOX.
Any idea how to overcome this?
Beta Was this translation helpful? Give feedback.
All reactions