This project purpose is convert voc annotation xml file to yolo-darknet training file format
Switch branches/tags
Nothing to show
Clone or download
ssaru Update README.md
modificated example Code command
Latest commit c2ad6e2 Aug 21, 2018

README.md

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

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] --img_path <image_path> --label <label path or annotation file> --convert_output_path <output path> --img_type [".jpg" / ".png"] --manipast_path <output manipast file path> --cls_list_file <*.names file path>

TODO

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