bearics / convert-dataset-dota2yolo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

convert-dataset-dota2yolo

convert dataset format DOTA's labelTxt-v1.5 to qqwweee/keras-yolo3's row format.

Format

DOTA's labelTxt-v1.5

'imagesource':imagesource 
'gsd':gsd 
x1, y1, x2, y2, x3, y3, x4, y4, category, difficult 
x1, y1, x2, y2, x3, y3, x4, y4, category, difficult
... 

qqwweee/keras-yolo3's row format

Row format: image_file_path box1 box2 ... boxN

Box format: x_min,y_min,x_max,y_max,class_id (no space).

path/to/img1.jpg 50,100,150,200,0 30,50,200,120,3
path/to/img2.jpg 120,300,250,600,2
...

How to use

Using default setting. It will use dota dataset in ./dota/ to make coverted dataset in ./yolo/result.txt.

dota2yolo.py

About


Languages

Language:Python 100.0%