tide icon indicating copy to clipboard operation
tide copied to clipboard

"IndexError: list index out of range" when run datasets.COCO()

Open TommyZihao opened this issue 3 years ago • 3 comments

I have made a bbox detection coco label my hand. label_B.json is this:

image

when run datasets.COCO('label_B.json'), it gets this error:

image

TommyZihao avatar Jan 12 '21 14:01 TommyZihao

My own custom dataset and class

TommyZihao avatar Jan 12 '21 14:01 TommyZihao

Hello, I am also facing the same issue. Does any one able to solve this error ?

Rvv1296 avatar Jun 28 '22 11:06 Rvv1296

I'm facing the same issue due to an empty segmentation list, for some reason installing Pull/31 hasn't fixed it, even though it shouldn't reach line 90.

ground truth json for custom dataset: image

code + error: image

updated functions.py from pull request 31: image

Jamessmith9956 avatar Nov 03 '22 16:11 Jamessmith9956