Download and extract the checkpoint file

Export GraphDef file

python3 <path to TF models repo>/research/slim/export_inference_graph.py \--alsologtostderr\--model_name=<the name of the model> \--batch_size=1 \--dataset_name=<the name of the dataset> \--image_size=<one dimension of image size> \--output_file=<the name of the model>.pb

Freeze model for inference

python3 <path to TF source repo>/tensorflow/python/tools/freeze_graph.py \--input_graph=<the name of the model>.pb \--input_binary=true\--input_checkpoint=<the name of the model>.ckpt \--output_graph=<the name of the model>_frozen.pb \--output_node_name=<name of the output node>

Compile the Movidius™ graph file

mvNCCompile -s <number of shaves> <name of the model>_frozen.pb -in=input -on=<name of the output node>

Example Using Inception v3 Model

This example shows the above steps for compiling the Inception v3 model for use with the NCSDK.