hukaixuan19970627 / DOTA_devkit_YOLO

Trans DOTA OBB format(poly format) to YOLO format.
198 stars 39 forks source link

ResultMerge #14

Closed Knight-9 closed 2 years ago

Knight-9 commented 2 years ago

raceback (most recent call last): File "/home/lfz/DOTA_devkit_YOLO/ResultMerge.py", line 197, in mergebypoly(r'/home/lfz/yolov5_obb/runs/detect/exp13/labels', r'/home/lfz/yolov5_obb/runs/detect/exp13/labels2') File "/home/lfz/DOTA_devkit_YOLO/ResultMerge.py", line 192, in mergebypoly mergebase(srcpath, File "/home/lfz/DOTA_devkit_YOLO/ResultMerge.py", line 146, in mergebase x_y_2 = re.findall(r'\d+', x_y[0]) # 匹配subname中的字符串 eg: x_y_2= ['0','0'] IndexError: list index out of range

用ResultMerge_multi_process.py也会报同样的错

hukaixuan19970627 commented 2 years ago

建议按照getstart.md中的demo来学习使用yolov5_obb,resultmerge.py对待merge的labels的输入格式是有要求的