VOC标签格式转yolo格式并划分训练集和测试集时,出现如下报错:
Traceback (most recent call Last) :
File "XXX(运行文件路径)", line 134, in <moduLe>
convert_ annotation( nameWithoutExtention) # convert Label
File "XXX(运行文件路径)", line 50, in convert_ annotation
difficult = obj. find( 'difficult' ) . text
AttributeError: ' NoneType' object has no attribute 'text '
Process finished with exit code 1 #表示文件代码运行失败报错