Skip to content

The results would be one txt file with data of the boxes for each image, a classes.names, a train.txt and a valid.txt.

Notifications You must be signed in to change notification settings

Wenjun-Wu/json2txt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

json2txt

Introduction

If you want to use your own dataset to train on Pytorch YOLOv3, however your annotation is saved as a json file, you can use this little python program to transform it to the form of txt files. The results would be one txt file with data of the boxes for each image, a classes.names, a train.txt and a valid.txt.

Some pre-operations:

Name the train set directory "train" where you put all train set images.
Name the test set directory "test" where you put all valid set images.
Name the annotation json file "annotation.json"
Put json2txt.py and annotation.json in the same directory with train directory and test directory.

About

The results would be one txt file with data of the boxes for each image, a classes.names, a train.txt and a valid.txt.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages