JSON2YOLO icon indicating copy to clipboard operation
JSON2YOLO copied to clipboard

alternative method- COCO json to YOLO

Open barney2074 opened this issue 3 years ago • 2 comments

For anyone else with the same problem:

I needed to consolidate multiple COCO json files (and corresponding images), sort out the class IDs, write yolo format annotation files, and separate into train/val/(test) datasets

I struggled with Python (mainly due to my limited skills) and also with applications such as fiftyone I ended up using Pentaho and create a fairly simple transformation to convert multiple COCO datasets into one YOLO dataset

I'm sure the same could be done more easily in Python

Happy to share it- reply if you are interested

Andrew

image

barney2074 avatar Jun 04 '22 09:06 barney2074

Hi @barney2074, FiftyOne looks a great datasets viewer.

If you could use RectLabel combining with FiftyOne, it would be a great use-case. https://github.com/ryouchinsa/Rectlabel-support/issues/1#issuecomment-1429658190

ryouchinsa avatar Feb 22 '23 13:02 ryouchinsa

Hi, @barney2074! Thank you for sharing your experience with using Pentaho for converting COCO datasets into a YOLO format. Your method could indeed be beneficial to others facing similar challenges. We appreciate your willingness to share and encourage you to post it in our discussion forum or create a guide for the community. Your contribution will surely prove valuable to those seeking alternative approaches. Feel free to reach out if you have any further insights or experiences to share.

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