jwyang / faster-rcnn.pytorch

A faster pytorch implementation of faster r-cnn
MIT License
7.67k stars 2.33k forks source link

KeyError: '006256' #777

Open shehuimao opened 4 years ago

shehuimao commented 4 years ago

when I run test_net.py, I meet the follow bugs:

Traceback (most recent call last): File "test_net.py", line 328, in imdb.evaluate_detections(all_boxes, output_dir) File "/home/mao/PycharmProjects/faster-rcnn.pytorch/lib/datasets/pascal_voc.py", line 367, in evaluate_detections self._do_python_eval(output_dir) File "/home/mao/PycharmProjects/faster-rcnn.pytorch/lib/datasets/pascal_voc.py", line 330, in _do_python_eval use_07_metric=use_07_metric) File "/home/mao/PycharmProjects/faster-rcnn.pytorch/lib/datasets/voc_eval.py", line 134, in voc_eval R = [obj for obj in recs[imagename] if (obj['name']).lower() == classname] KeyError: '006256'

i can successfully run the script,but it doesn't show me the classes results.

loolzaaa commented 4 years ago

Looks like you correct test image set file.

May be you need to clean annotations cache file from cache dir?

By default, devkit_path -> annotations_cache ...