eric612 / BDD100k-toolkit

Convert bdd100k dataset to lmdb
MIT License
17 stars 1 forks source link

Error with new bdd detection 2020 labels #3

Open sainisanjay opened 3 years ago

sainisanjay commented 3 years ago

Hi @eric612, Thanks for toolkit, it is really helpful. However, when i used new bdd Detection 2020 labels ("det_v2_train_release.json", "det_v2_val_release.json") below error got. Any idea how to resolve?

Traceback (most recent call last):
  File "/home/adas/workspace/data/BDD/BDD100k-toolkit/split_annotation.py", line 37, in <module>
    coco = COCO(annofile)
  File "/home/adas/objectDetection/models/research/pycocotools/coco.py", line 85, in __init__
    assert type(dataset)==dict, 'annotation file format {} not supported'.format(type(dataset))
AssertionError: annotation file format <class 'list'> not supported