运行faster rcnn的test_faster_rcnn.sh时报错及解决

详见https://github.com/endernewton/tf-faster-rcnn/issues/171

1、训练好了test时运行./expriments/scripts/test_faster_rcnn.sh 0 pascal_voc vgg16

产生TypeError:write() argument must br str , not bytes.Command exited with non-zero status 1.

解决方案:在/lib/datasets/VOCdevkit-matlab-wrapper.voc_eval.py的L121将with open(cachefile,'w') as f:改成

with open(cachefile,'wb') as f:

2、改完之后再运行仍会报错:

EOFError: Ran out of input.Command exited with non-zero status 1.

解决方案:将/lib/datasets/VOCdevkit-matlab-wrapper.voc_eval.py的L105改成

cachefile = os.path.join(cachedir, '%s_annots.pkl' % imagesetfile.split("/")[-1].split(".")[0])

猜你喜欢

转载自blog.csdn.net/qq_19307465/article/details/83007238
今日推荐