You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Traceback (most recent call last):
File "roLabelImg.py", line 1142, in openNextImg
self.loadFile(filename)
File "roLabelImg.py", line 933, in loadFile
self.loadPascalXMLByFilename(xmlPath)
File "roLabelImg.py", line 1287, in loadPascalXMLByFilename
tVocParseReader = PascalVocReader(xmlPath)
File "E:\dt\roLabelImg-master\libs\pascal_voc_io.py", line 207, in init
self.parseXML()
File "E:\dt\roLabelImg-master\libs\pascal_voc_io.py", line 264, in parseXML
if typeItem.text == 'bndbox':
AttributeError: 'NoneType' object has no attribute 'text'
The text was updated successfully, but these errors were encountered:
Something has happened with the format of the .xml files. Now, there is a new format when labelling, which is slightly different that the previous one (for instance, there is a type attribute in the new format), so the code breaks. In order to fix it change the lines depicted in the printscreen:
issue1
**OS:**win11
Error: Traceback (most recent call last):
File "roLabelImg.py", line 1142, in openNextImg
self.loadFile(filename)
File "roLabelImg.py", line 933, in loadFile
self.loadPascalXMLByFilename(xmlPath)
File "roLabelImg.py", line 1287, in loadPascalXMLByFilename
tVocParseReader = PascalVocReader(xmlPath)
File "E:\dt\roLabelImg-master\libs\pascal_voc_io.py", line 207, in init
self.parseXML()
File "E:\dt\roLabelImg-master\libs\pascal_voc_io.py", line 264, in parseXML
if typeItem.text == 'bndbox':
AttributeError: 'NoneType' object has no attribute 'text'
The text was updated successfully, but these errors were encountered: