Created
September 20, 2018 12:29
-
-
Save tomekdz/b16c5d5f649cf2bb363719e13f8aa0cb to your computer and use it in GitHub Desktop.
Converting tensorflow frozen graph to .tflite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./bazel-bin/tensorflow/contrib/lite/toco/toco \ | |
--input_file=yolov2-tiny.pb \ | |
--output_file=foo.tflite \ | |
--input_format=TENSORFLOW_GRAPHDEF \ | |
--output_format=TFLITE \ | |
--input_arrays=input \ | |
--input_shapes=1,416,416,3 \ | |
--output_arrays=output |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if
toco: error: one of the arguments --graph_def_file --saved_model_dir --keras_model_file is required
error shows up make sure you replace
input_file
withgraph_def_file