JSON2YOLO icon indicating copy to clipboard operation
JSON2YOLO copied to clipboard

conversion to yolov5

Open laviadin opened this issue 4 years ago • 5 comments

Is this code good for converting coco json to yolov5 format?

laviadin avatar Jun 22 '21 15:06 laviadin

@laviadin yes this repo can convert COCO JSON to YOLOv5 format!

glenn-jocher avatar Jun 22 '21 18:06 glenn-jocher

how is it done?

laviadin avatar Jun 22 '21 19:06 laviadin

@laviadin you just specify your directory containing your JSONs here and run: https://github.com/ultralytics/JSON2YOLO/blob/1e910b51fa27f95f75fe438ddc8fbf5ea31ca54d/general_json2yolo.py#L291-L296

glenn-jocher avatar Jun 23 '21 12:06 glenn-jocher

It is giving me error as: IndexError: list index out of range

asparmar14 avatar Sep 14 '22 10:09 asparmar14

@laviadin It seems that the error might be occurring due to an issue with the JSON file's contents or format. Ensure that the JSON files adhere to the COCO format, and verify that the required fields are present in each JSON file. Also, please make sure to use the latest version of the repository. If the issue persists, feel free to provide more details, and we will be happy to assist further.

glenn-jocher avatar Nov 09 '23 18:11 glenn-jocher