執行faster rcnn的test_faster_rcnn.sh時報錯及解決
阿新 • • 發佈:2018-11-23
詳見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])