Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converting fsco-dataset .json format into yolov8 acceptance format #67

Open
shivakarnati opened this issue Dec 7, 2023 · 1 comment

Comments

@shivakarnati
Copy link

Hi All!

I would like to convert below .json annotated file into yolov8 acceptance format, can somebody help me out ?

{ "description": "", "tags": [ { "id": 118615272, "tagId": 30143178, "name": "train", "value": null, "labelerLogin": "fsocov2", "createdAt": "2020-08-11T08:43:40.624Z", "updatedAt": "2020-08-11T08:43:40.624Z" } ], "size": { "height": 920, "width": 2872 }, "objects": [ { "id": 889978312, "classId": 9993511, "description": "", "geometryType": "rectangle", "labelerLogin": "fsocov2", "createdAt": "2020-08-11T08:17:13.366Z", "updatedAt": "2020-08-11T08:17:13.366Z", "tags": [], "classTitle": "blue_cone", "points": { "exterior": [ [ 2377, 198 ], [ 2398, 224 ] ], "interior": [] } }, { "id": 889978311, "classId": 9993511, "description": "", "geometryType": "rectangle", "labelerLogin": "fsocov2", "createdAt": "2020-08-11T08:17:13.366Z", "updatedAt": "2020-08-11T08:17:13.366Z", "tags": [], "classTitle": "blue_cone", "points": { "exterior": [ [ 2419, 189 ], [ 2436, 210 ] ], "interior": [] } }, { "id": 889978310, "classId": 9993511, "description": "", "geometryType": "rectangle", "labelerLogin": "fsocov2", "createdAt": "2020-08-11T08:17:13.366Z", "updatedAt": "2020-08-11T08:17:13.366Z", "tags": [], "classTitle": "blue_cone", "points": { "exterior": [ [ 2316, 212 ], [ 2345, 246 ] ], "interior": [] } },

And I need in <class_id> <x_center> <y_center> <width> <height>

@glenn-jocher
Copy link
Member

@shivakarnati you can convert the provided JSON annotations into YOLOv5 acceptance format using scripts or tools to parse and transform the data. This often involves mapping class titles to class IDs and converting bounding box coordinates. Check out the Ultralytics Docs for more details on data formatting. Good luck! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants