前言
基于labelme2yolo库将labelme格式的标注数据转成yolo格式
安装 labelme2yolo
pip install labelme2yolo
标注格式转换
labelme2yolo --json_dir /path/to/labelme_json_dir/ --val_size 0.15 --test_size 0.15
参数
–json_dir LabelMe JSON files folder path.
–val_size (Optional) Validation dataset size, for example 0.2 means 20% for validation.
–test_size (Optional) Test dataset size, for example 0.1 means 10% for Test.
–json_name (Optional) Convert single LabelMe JSON file.
–output_format (Optional) The output format of label.
–label_list (Optional) The pre-assigned category labels.