Skip to content

Latest commit

 

History

History
29 lines (13 loc) · 968 Bytes

README.md

File metadata and controls

29 lines (13 loc) · 968 Bytes

Python script to convert LabelMe JSON files to Darknet's txt file format

I saw a lot of code on the web which claimed to do this but for some reason none worked. So here's a small and simple script for the task.

Does this work?

Well it worke-

alt text

Tried it with the Yolo_Label tool. Here's an example -

alt text

So it probably does

A bit more work is needed to correctly setup the directory structure of the dataset. Refer to the training custom data section in YOLOv5 repository for information about the Darknet dataset structure

Follow a detailed version of doing this from this tutorial