Skip to content

Tensorflow Object Detection Tools : Start to finish on object detection project in 3 commands. Add mobile inferencing.

License

Notifications You must be signed in to change notification settings

droyed/tfodtools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tensorflow Object Detection Tools

Py-Versions Bash-Version OS License

This repository is conceived with the idea of simplifying tensorflow objection detection workflow to minimize the hassles of setting up various components and maximizing automation between them. It also extends to incoporate a mobile-based inferencing of the trained models. Thus, this could work as an end-to-end toolkit solution for a tensorflow based objection detection project.

Steps

$ cd shell_scripts

I. Setup python virtual environment :

$ bash setup_tfODenv.sh

This will interactively setup the environment and will be a one-time process. It also sets up a config file that facilitates the next steps. So, training on new data or with new models would re-use this setup.

Before proceeding with next step, let's make sure we have the input data in the required format. It's explored in detail at Tensorflow object detection data setup - Setup images and xmls.

II. Setup data and training :

$ bash setup_data_train.sh

This will setup everything needed for training, start it and also dynamically create save_model.sh and create_mobile_optimized_model.sh that are scripts needed later on for inferencing.

III. Once done with training, we can save this model with :

$ bash save_model.sh

The saved model could then be loaded into tensorflow environment for inferencing.

IV. (Optional) We can also create mobile optimized version for inferencing on mobile devices with :

$ bash create_mobile_optimized_model.sh

This will create model.json and shard files :

.
├── group1-shard1of3.bin
├── group1-shard2of3.bin
├── group1-shard3of3.bin
└── model.json

Setup mobile inference discusses a setup workflow on using these files for a mobile based inferencing.

About

Tensorflow Object Detection Tools : Start to finish on object detection project in 3 commands. Add mobile inferencing.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published