2.2 Train the model with tensorflow - abhishekkumardwivedi/android-things-AI-Camera GitHub Wiki

This is much convenient way to train for the image with tensorflow inception. I did try with darkflow first as I had been getting some issues initially. And after coming back to tensorflow way of training it is charm.

$ git clone https://github.com/tensorflow/tensorflow.git
$ cd ~/tensorflow

python tensorflow/examples/image_retraining/retrain.py \
--bottleneck_dir=/tf_files/bottlenecks \
--how_many_training_steps 500 \
--model_dir=/tf_files/inception \
--output_graph=/tf_files/lp_graph.pb \
--output_labels=/tf_files/lp_labels.txt \
--image_dir /tf_files/licenseplate