This is a collection of scripts to setup datasets and/or to convert files of certain boundingbox-annotation formats into another
Run one or several scripts to get to your desired training format.
Note: Some of the scripts use packages provided by tensorflow's API
So make sure to includetensorflow/models/researchto your PYTHONPATH
To Set Up the Oxford- and/or Egohands Dataset, run:
egohands_setup.py
oxfordhands_setup.py
Example: to get from .mat annotations to a tensorflow runnable .record file, run:
mat_to_xml.py
xml_to_csv.py
csv_img_to_tfrecord.py
All scripts create/support following folder structure to be able to support tensorflow aswell as yolo-darknet projects:
.
βββ data
β βββ train
β β βββ annotations
β β β βββ mat
β β β β βββfile1.mat
β β β β βββ ...
β β β βββ xml
β β β βββfile1.xml
β β β βββ ...
β β βββ labels
β β β βββfile1.txt
β β β βββ ...
β β βββ images
β β βββfile1.jpg
β β βββ ...
β βββ eval
β β βββ ...
β β
β βββ train_labels.csv
β βββ eval_labels.csv
β βββ label_map.pbtxt
β βββ train.record
β βββ eval.record
β βββ train.txt
β βββ eval.txt
β
βββ model
See howto_tf and howto_yolo for information how to train on yolo or tensorflow