(py36_keras_yolov3_env) D:\python-workspace\keras-yolo3-master-pipelinemonitor>python voc_annotation.py
Traceback (most recent call last):
File "voc_annotation.py", line 48, in <module>
convert_annotation(year, image_id, list_file)
File "voc_annotation.py", line 25, in convert_annotation
in_file = open('VOCdevkit/VOC%s/Annotations/%s.xml' % (year, image_id), encoding='utf-8')
FileNotFoundError: [Errno 2] No such file or directory: 'VOCdevkit/VOC2007/Annotations/开明路_2A30YS1267_2A30YS1268,3.9.xml'
原因及解决方法:
由于图片在命名时存在空格,所以按空格切分后,读取不到对应的xml文件了;需删除名称中的空格即可。