Training Inception Model

From Emgu CV: OpenCV in .NET (C#, VB, C++ and more)
Revision as of 21:21, 27 July 2017 by Canming (talk | contribs) (Created page with "==Training your custom inception model== Follow this tensorflow tutorial to retrain a new inception model. https://www.tensorflow.org/tutorials/image_retraining Once all is...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Training your custom inception model

Follow this tensorflow tutorial to retrain a new inception model.

https://www.tensorflow.org/tutorials/image_retraining

Once all is done, you will have two files: /tmp/output_graph.pb and /tmp/output_labels.txt

Optimize the graph for inference

bazel build tensorflow/python/tools:optimize_for_inference

bazel-bin/tensorflow/python/tools/optimize_for_inference --input=/tmp/output_graph.pb --output=/tmp/optimized_graph.pb --input_names=Mul --output_names=final_result