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

testing error of own dataset in excuting task of './experiments/scripts/test_faster_rcnn.sh 0 pascal_voc vgg16 '

Open ccywxhn opened this issue 6 years ago • 2 comments

Evaluating detections Writing car VOC results file VOC07 metric? Yes Reading annotation for 1/637 Traceback (most recent call last): File "./tools/test_net.py", line 120, in test_net(sess, net, imdb, filename, max_per_image=args.max_per_image) File "/home/ccy/fasterrcnn/tf-faster-rcnn/tools/../lib/model/test.py", line 192, in test_net imdb.evaluate_detections(all_boxes, output_dir) File "/home/ccy/fasterrcnn/tf-faster-rcnn/tools/../lib/datasets/pascal_voc.py", line 284, in evaluate_detections self._do_python_eval(output_dir) File "/home/ccy/fasterrcnn/tf-faster-rcnn/tools/../lib/datasets/pascal_voc.py", line 247, in _do_python_eval use_07_metric=use_07_metric, use_diff=self.config['use_diff']) File "/home/ccy/fasterrcnn/tf-faster-rcnn/tools/../lib/datasets/voc_eval.py", line 115, in voc_eval recs[imagename] = parse_rec(annopath.format(imagename)) File "/home/ccy/fasterrcnn/tf-faster-rcnn/tools/../lib/datasets/voc_eval.py", line 23, in parse_rec obj_struct['truncated'] = int(obj.find('truncated').text) ValueError: invalid literal for int() with base 10: '0.0597' Command exited with non-zero status 1 50.86user 8.38system 1:12.69elapsed 81%CPU (0avgtext+0avgdata 3430092maxresident)k 8inputs+5512outputs (0major+1799780minor)pagefaults 0swaps

ccywxhn avatar Dec 05 '18 02:12 ccywxhn

@ccywxhn str->float->int '0.0597'->int is invalid obj_struct['truncated'] = int(float(obj.find('truncated').text)) will be ok

zyuerugou avatar May 02 '19 13:05 zyuerugou

Thank you for your answer, the problem has been solved.

------------------ 原始邮件 ------------------ 发件人: "zyuerugou"[email protected]; 发送时间: 2019年5月2日(星期四) 晚上9:39 收件人: "endernewton/tf-faster-rcnn"[email protected]; 抄送: "Ccy"[email protected]; "Mention"[email protected]; 主题: Re: [endernewton/tf-faster-rcnn] testing error of own dataset inexcuting task of './experiments/scripts/test_faster_rcnn.sh 0 pascal_vocvgg16 ' (#405)

@ccywxhn str->float->int '0.0597'->int is invalid obj_struct['truncated'] = int(float(obj.find('truncated').text)) will be ok

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

ccywxhn avatar May 02 '19 13:05 ccywxhn