Object Detection Data Preprocessing: Converts COCO labels to YOLO labels format
To convert your COCO labels to YOLO label format simply copy the python code in coco_to_yolo.py
and run ConvertCOCOToYOLO(img_path="path_to_images_directory",json_path='training_data.json').convert()
.
You will need to add your image and JSON file path accordingly under the parameters img_path
and json_path
respectively.