Skip to content

codeDroid1/dataset-convertor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

annotations-convertor

script for convert annotations from one format to another format

python convert.py --input-folder ./data/input \
                  --output-folder ./data/output \
                  --input-format  \
                  --output-format

Dataset types

Current support format

Currently, the following formats are supported:

from to implemented
PASCAL VOC YOLO(TXT files) Yes
PASCAL VOC COCO (JSON files) No
COCO PASCAL VOC (XML files) No
COCO YOLO (TXT files) No
YOLO COCO (JSON files) No
YOLO PASCAL VOC (XML files) Yes

Installation

git clone https://github.com/codePerfectPlus/dataset-convertor/
cd dataset-convertor
python -m venv venv
source venv/bin/activate
pip install requirements.txt

Usage

convert annotations from one format to another format.

dataset formatting example:

- data/pascal_voc/JPEGImages/*.jpg
- data/pascal_voc/Annotations/*.xml

- data/yolo5/JPEGImages/*.jpg
- data/yolo5/labels/*.txt
# example command for pascal-voc(xml) to yolo(txt)
python convert.py --input-folder ./data/pascal_voc \
                  --output-folder ./output/yolo5 \
                  --input-format  voc \
                  --output-format yolo

Reference

License

Authors

About

Convert Object Detection Dataset Format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%