I have a model trained with TF 1.4 exported to a frozen inference graph with the file "models/research/object_detection/export_tflite_ssd_graph.py"
How can I can convert it tflite? I'm having a lot of issues
I have a model trained with TF 1.4 exported to a frozen inference graph with the file "models/research/object_detection/export_tflite_ssd_graph.py"
How can I can convert it tflite? I'm having a lot of issues
You can use the command line tool or the Python API.
Python API example:
converter = tf.lite.TFLiteConverter.from_frozen_graph(
graph_def_file, input_arrays, output_arrays)
tflite_model = converter.convert()
open("converted_model.tflite", "wb").write(tflite_model)
CLI example:
tflite_convert \
--output_file=/tmp/foo.tflite \
--graph_def_file=/tmp/mobilenet_v1_0.50_128/frozen_graph.pb \
--input_arrays=input \
--output_arrays=MobilenetV1/Predictions/Reshape_1
Tensorflow officially recommends using the Python API.