问题:
FileNotFoundError: [Errno 2] No such file or directory: 'VOCdevkit/VOC2012/ImageSets/Main/aeroplane_train.txt'
解决方法:把上面的相对路径换成绝对路径,把
'VOCdevkit/VOC2012/ImageSets/Main/aeroplane_train.txt'
换成:
D:\\项目\\dataset\\VOCdevkit\\VOC2012\\Image****.txt'