I add some small python scripts here which could be handy sometimes.
I did not wrote all of them and some are collected from stackoverflow and github and tensorflow object_detection api documentation with minor changes.
These scripts are tested on Ubuntu 18.04 LTS and might not work on other OSs other than linux without editing os.system() commands.
Usage:
-
python clear_dataset.py /path/to/dataset/directory
-
python move_xmls /path/to/image+xmls/directory
-
python save_frames /path/to/video --name an_arbitrary_name
-
python split_rfrecord.py --num-frames 100
-
from tensorflow object_detection directory:
python xml_to_csv
Note that your data should have this structure:images test train
-
python partition_dataset.py -i IMAGEDIR -r RATIO -x
-
pyhton Object_detection_video.py /path/to/frozen_inference_graph/directory --video /path/to/a/video
refrences:
https://github.com/EdjeElectronics/TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10#5-create-label-map-and-configure-training https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/latest/