py-faster-rcnn icon indicating copy to clipboard operation
py-faster-rcnn copied to clipboard

test_net.py: IOError: [Errno 2] No such file or directory: '8453.xml'

Open annzheng opened this issue 8 years ago • 8 comments

When I use the test_net.py, I got this problem:

Evaluating detections Writing 1 VOC results file VOC07 metric? Yes Traceback (most recent call last): File "./tools/test_net.py", line 90, in test_net(net, imdb, max_per_image=args.max_per_image, vis=args.vis) File "F:\faster_rcnn_version\fasterRcnn_final_v1_5\tools..\lib\fast_rcnn\test.py", line 295, in test_net imdb.evaluate_detections(all_boxes, output_dir) File "F:\faster_rcnn_version\fasterRcnn_final_v1_5\tools..\lib\datasets\pascal_voc.py", line 318, in evaluate_detections self._do_python_eval(output_dir) File "F:\faster_rcnn_version\fasterRcnn_final_v1_5\tools..\lib\datasets\pascal_voc.py", line 281, in _do_python_eval use_07_metric=use_07_metric) File "F:\faster_rcnn_version\fasterRcnn_final_v1_5\tools..\lib\datasets\voc_eval.py", line 109, in voc_eval recs[imagename] = parse_rec(annopath.format(imagename)) File "F:\faster_rcnn_version\fasterRcnn_final_v1_5\tools..\lib\datasets\voc_eval.py", line 14, in parse_rec tree = ET.parse(filename) File "C:\ProgramData\Anaconda2\lib\xml\etree\ElementTree.py", line 1182, in parse tree.parse(source, parser) File "C:\ProgramData\Anaconda2\lib\xml\etree\ElementTree.py", line 647, in parse source = open(source, "rb") IOError: [Errno 2] No such file or directory: '8453.xml'

What should I do?

annzheng avatar Aug 20 '17 02:08 annzheng

Hi~I met the same problem. Have you solved it?

jieyongshi avatar Apr 20 '18 02:04 jieyongshi

I got the same problem also. Have you guys solved it? Thx

trungphan9x avatar Jun 11 '18 13:06 trungphan9x

I got the same problem.. Have you solved it? Thx in advanced.

MartinHHF avatar Oct 07 '18 14:10 MartinHHF

Hi~I met the same problem. Have you solved it?

tongjuntx avatar Jan 23 '19 14:01 tongjuntx

I met the same problem. Have you solved it?

yangtian98 avatar Mar 17 '19 08:03 yangtian98

I met the same problem.have you solved it ?

alsilence avatar Jun 03 '19 07:06 alsilence

I hava solved the problem. you can refer to https://blog.csdn.net/w15071453963/article/details/98597404.

1317729246 avatar Aug 06 '19 04:08 1317729246

I hava solved the problem. you can refer to https://blog.csdn.net/w15071453963/article/details/98597404.

thank u!I have solve the problem by modify the definition of 'annopath' in /lib/datasets/pascal_voc.py.

ghost avatar Feb 17 '20 08:02 ghost