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)

[

解决方案 »

  1.   

    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