Home > OS >  Faster - - RCNN error: confidence=np array ([float could not convert stringto loat:
Faster - - RCNN error: confidence=np array ([float could not convert stringto loat:

Time:10-06

faster - - RCNN training error:

saving cached annotations to/home/.../annots PKL
Traceback (the most recent call last) :
The File "./tools/test_net. Py ", line 90, in & lt; module>
.
.
.
The 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 a string to a float, (2)

[

CodePudding user response:

Hi, did you fix it by the following?
Basically the edit tf - faster - - RCNN/lib/datasets/voc_eval py line121, change 'b' to 'wb so it will become
With the open (cachefile, 'wb) as f
After you do that, it may throw you a new EOF ran out of the input error.? You then need to edit same file line 105. Change it to
Cachefile=OS. Path. Join (cachedir, '% s_annots. The PKL' % imagesetfile. The split ("/") [1]. The split (". ") [0])
Delete the test. Txt_annots. PKL
  • Related