Skip to content

This project purpose is convert voc annotation xml file to yolo-darknet training file format

Notifications You must be signed in to change notification settings

paulxiong/convert2Yolo

Repository files navigation

Convert2Yolo

Object Detection annotation Convert to Yolo Darknet Format

Support DataSet :

  1. COCO
  2. VOC
  3. UDACITY Object Detection
  4. KITTI 2D Object Detection

Pre-Requiredment

pip3 install -r requirements.txt

1. Required Parameters

each dataset requried some parameters

see example.py

  1. Dataset Category
  2. Image path
  3. annotation path
  4. output path
  5. image type
  6. manipast file path
  7. class list file path(*.names)
*.names file example
aeroplane
bicycle
bird
boat
bottle
bus
car
cat
chair
cow
diningtable
dog
horse
motorbike
person
pottedplant
sheep
sofa
train
tvmonitor

1. example Code

python3 example.py --datasets [COCO/VOC/KITTI/UDACITY] --image_path <image_path> --label <label path or annotation file> --convert_output_path <output path> --image_type [".jpg" / ".png"] --manipast_path <output manipast file path> --clas_list_file <*.names file path>

TODO

  • Support VOC Pascal Format
  • Support Udacity Format
  • Support COCO Format
  • Support KITTI Format
  • Write README
  • Code Refactoring

About

This project purpose is convert voc annotation xml file to yolo-darknet training file format

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%