Processing: 0%| | 0/3600 [00:00<?, ?it/s]
Traceback (most recent call last):
File "2.py", line 166, in <module>
bndbox = read_xml_annotation(XML_DIR, name)
File "2.py", line 30, in read_xml_annotation
xmin = int(bndbox.find('xmin').text)
ValueError: invalid literal for int() with base 10: '325.49238578680206'
30行,int改成eval
Traceback (most recent call last):
File "统计标签尺寸.py", line 60, in <module>
recs[name] = parse_obj(xml_path, name + '.xml')
File "统计标签尺寸.py", line 26, in parse_obj
obj_struct['bbox'] = [int(bbox.find('xmin').text),
ValueError: invalid literal for int() with base 10: '129.55329949238578'
26行,int改成eval