Hi, when I tried to convert my custom coco dataset to yolo format, I got the below error:
My script is shown below:
from ultralytics.data.converter import convert_coco
convert_coco(labels_dir={my annotation path}', save_dir='{output path}/labels', use_segments=False, use_keypoints=False, cls91to80=False)
I checked the error and fixed it by adding one line:
os.makedirs((fn / f).parent, exist_ok=True)
I wonder if it is a minor bug in this tool or something only happened specifically for my case?
Thanks!
Hi, when I tried to convert my custom coco dataset to yolo format, I got the below error:
My script is shown below:
from ultralytics.data.converter import convert_coco convert_coco(labels_dir={my annotation path}', save_dir='{output path}/labels', use_segments=False, use_keypoints=False, cls91to80=False)I checked the error and fixed it by adding one line:
os.makedirs((fn / f).parent, exist_ok=True)I wonder if it is a minor bug in this tool or something only happened specifically for my case?
Thanks!