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
Traceback (most recent call last):
File "voc2coco.py", line 154, in <module>
convert(xml_files, args.json_file)
File "voc2coco.py", line 109, in convert
ymin = int(get_and_check(bndbox, "ymin", 1).text) - 1
ValueError: invalid literal for int() with base 10: '281.70000076293945'
I got the same issue. Generally speaking there shouldn't be floats in VOC files. I got floats, because i got my VOC files from converting yolo annotations to VOC. So I went back and rounded to a whole number while converting from yolo to VOC. That fixed it for me
Float in the coordinate will cause error:
Code:
voc2coco/voc2coco.py
Lines 108 to 111 in 207f265
Not sure:
Check float in xml files:
Result:
BTW: Great code and blogs! It helps me a lot!
The text was updated successfully, but these errors were encountered: