配置过程主要参考这位博主,特别感谢 https://blog.csdn.net/some_possible/article/details/79139994、
最后一个voc_eval函数遇到一些问题: 1.voc_eval() 25-27行报错,大概的意思是 int不能转换string,所以中间加一个float():
obj_struct[
'bbox'] = [
int(
float(bbox.find(
'xmin').
text)),
int(
float(bbox.find(
'ymin').
text)),
int(
float(bbox.find(
'xmax').
text)),
int(
float(bbox.find(
'ymax').
text))]
2.voc_eval 121:b改成wb
with open(cachefile,
'wb')
as f
3.105行:
cachefile = os.path.
join(cachedir,
'%s_annots.pkl' % imagesetfile.
split(
"/")[-
1].
split(
".")[
0])
这样才不会出错成功得到ap值