sfzhang15 / RefineDet

Single-Shot Refinement Neural Network for Object Detection, CVPR, 2018
Other
1.44k stars 392 forks source link

您好,关于mAP的测试问题 #163

Closed lillyro closed 5 years ago

lillyro commented 5 years ago

使用别的数据集如VOC,cityperson没有问题.但是使用BDD进行测试时会报错

Traceback (most recent call last): File "./test/refinedet_test.py", line 60, in single_scale_test_net(net, imdb, targe_size=input_size) File "/home/lilly/loli/RefineDet/test/lib/fast_rcnn/test.py", line 247, in single_scale_test_net imdb.evaluate_detections(all_boxes, output_dir) File "/home/lilly/loli/RefineDet/test/lib/datasets/pascal_voc.py", line 330, in evaluate_detections self._do_python_eval(output_dir) File "/home/lilly/loli/RefineDet/test/lib/datasets/pascal_voc.py", line 299, in _do_python_eval use_07_metric=use_07_metric) File "/home/lilly/loli/RefineDet/test/lib/datasets/voc_eval.py", line 109, in voc_eval recs[imagename] = parse_rec(annopath.format(imagename)) File "/home/lilly/loli/RefineDet/test/lib/datasets/voc_eval.py", line 21, in parse_rec obj_struct['difficult'] = int(obj.find('difficult').text) AttributeError: 'NoneType' object has no attribute 'text'

想问下为什么会出现这种情况呢?谢谢!

lillyro commented 5 years ago

已解决.打扰了不好意思