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
大神creat_all中调用voc_label.py代码时在此处
tree=ET.parse(in_file)
root = tree.getroot()
size = root.find('size')
w = int(size.find('width').text)
h = int(size.find('height').text)
for obj in root.iter('object'):
出现问题'NoneTyep'object has no attribute 'text‘
上述代码最后一行改为 for obj in size.iter('object'):可以跑通,结果就是txt文件存在,但是内容全为空是我不能这么改么--
The text was updated successfully, but these errors were encountered:
大神creat_all中调用voc_label.py代码时在此处
tree=ET.parse(in_file)
root = tree.getroot()
size = root.find('size')
w = int(size.find('width').text)
h = int(size.find('height').text)
for obj in root.iter('object'):
出现问题'NoneTyep'object has no attribute 'text‘
上述代码最后一行改为 for obj in size.iter('object'):可以跑通,结果就是txt文件存在,但是内容全为空是我不能这么改么--
The text was updated successfully, but these errors were encountered: