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
{{ message }}
This repository has been archived by the owner on Aug 20, 2020. It is now read-only.
I'm converting this dataset (https://www.di.ens.fr/willow/research/headdetection/) from xml to txt to use it in YOLO but I'm getting this error.
VOC Parsing Result : False, msg : ERROR : 'NoneType' object has no attribute 'text', moreInfo : <class 'AttributeError'> Format.py 258
this is line 258 in Format.py
tmp = {
"name": _object.find("name").text
}
Do you know how to solve it?
The text was updated successfully, but these errors were encountered:
you have to check your xml file and tags in that xml file.
For example I got my xml files from labelbox.com (as a voc format) and every object has instead of bndbox and x1,y1,x2,y2 instead of xmin,ymin,xmax,ymax.
So I chaged code from line 261 on Format.py as
I also got my xml file from labelbox as voc format but I have both bndbox and polygon. Moreover, some xml files have x1 x2 x3 x4 y1 y2 y3 y4. I dont know how todeal with it.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm converting this dataset (https://www.di.ens.fr/willow/research/headdetection/) from xml to txt to use it in YOLO but I'm getting this error.
VOC Parsing Result : False, msg : ERROR : 'NoneType' object has no attribute 'text', moreInfo : <class 'AttributeError'> Format.py 258
this is line 258 in Format.py
tmp = {
"name": _object.find("name").text
}
Do you know how to solve it?
The text was updated successfully, but these errors were encountered: