Convert pb to tflite
I've trained a classifier model with tensorflow and have freezen the network. I've got my model.pb and want to convert it to tflite. How to make it?
I've trained a classifier model with tensorflow and have freezen the network. I've got my model.pb and want to convert it to tflite. How to make it?
Tensorflow Lite has couple of options to convert from tensorflow models. One of them is command line tool. You just need to install tflite and call this command.
tflite_convert \
--output_file=/tmp/foo.tflite \
--graph_def_file=/tmp/frozen_graph.pb \
--input_arrays=input \
--output_arrays=output