Skip to content

Simple Python script to convert annotations done using LabelMe to the Darknet format

Notifications You must be signed in to change notification settings

pulkitvyas08/LabelMeToDarknet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Simple Python script to convert annotations done using LabelMe to the Darknet format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published