mmdetection_object_detection_demo icon indicating copy to clipboard operation
mmdetection_object_detection_demo copied to clipboard

key error in xml_style

Open RiyazAina-DeepML opened this issue 5 years ago • 2 comments

i used your colab notebook and only changed the dataset inside your data folder.but when i ran train.py code i am getting following error ,dont know why?

KeyError: Caught KeyError in DataLoader worker process 0.
 File "/usr/local/lib/python3.6/dist-packages/mmdet-1.0+93bed07-py3.6-linux-x86_64.egg/mmdet/datasets/xml_style.py", line 47, in get_ann_info
    label = self.cat2label[name]
KeyError: 'agx'

RiyazAina-DeepML avatar Feb 01 '20 06:02 RiyazAina-DeepML

I have the same error. How did you fix it?

ahsan44411 avatar Mar 08 '20 11:03 ahsan44411

@RiyazAina-DeepML how many classes do you have in your dataset? I have the same problem with one class.

CrazyCrud avatar Jan 09 '21 19:01 CrazyCrud