hai-h-nguyen / Yolo2Pascal-annotation-conversion

Convert Yolo Darket to Pascal VOC annotation format and vice versa.
113 stars 42 forks source link

error: classIndex, xcen, ycen, w, h = bndBox.split(' ') #11

Open eeric opened 3 years ago

eeric commented 3 years ago

some label format such as .txt, it exist '\n', so the 146th line in Yolo2Pascal-annotation-conversion/yolo2pascal/yoloio.py, modified as following: classIndex, xcen, ycen, w, h, = bndBox.strip("\n").split(' ')

eeric commented 3 years ago

did not use, you could try as following: https://github.com/eeric/yolo2voc2coco