faster-rcnn訓練出錯:
saving cached annotations to /home/...../annots.pkl
Traceback(most recent call last):
File "./tools/test_net.py",line 90, in <module>
...
...
...
File "/home/zy/py-faster-rcnn/tools/../lib/datasets/voc_eval.py", line 142, in voc_eval
confidence = np.array([float(x[1]) for x in splitlines])
ValueError: could not convert string to float: (2)
[
uj5u.com熱心網友回復:
Hi, did you fix it by the following?basically edit tf-faster-rcnn/lib/datasets/voc_eval.py line121, change 'b' to 'wb' so it will become
with open(cachefile,'wb') as f
After you do that, it may throw you a new EOF ran out of input error.?You then need to edit same file line 105. Change it to
cachefile = os.path.join(cachedir, '%s_annots.pkl' % imagesetfile.split("/")[-1].split(".")[0])
delete test.txt_annots.pkl
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/116189.html
標籤:內核源代碼研究區
上一篇:centos創建用戶,設定組
下一篇:linux系統安裝出現問題
