Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Does readNetFromTensorflow support ".tflite" format?

Currently opencv dnn::readNetFromTensorflow only supports ".pb" file format, The downsize is that model file size is usually very large thus not very mobile friendly.

TensorFlow now provides tools to convert ".pb" to ".tflite", which makes model files more usable on mobile platforms. https://www.tensorflow.org/lite/convert/python_api

However, I can't find a way to load ".tflite" model files using opencv, it returns an empty Net when I do so. did I miss anything? or is there a plan for opencv to support ".tflite" file format?

click to hide/show revision 2
retagged

updated 2019-02-23 02:23:12 -0600

berak gravatar image

Does readNetFromTensorflow support ".tflite" format?

Currently opencv dnn::readNetFromTensorflow only supports ".pb" file format, The downsize is that model file size is usually very large thus not very mobile friendly.

TensorFlow now provides tools to convert ".pb" to ".tflite", which makes model files more usable on mobile platforms. https://www.tensorflow.org/lite/convert/python_api

However, I can't find a way to load ".tflite" model files using opencv, it returns an empty Net when I do so. did I miss anything? or is there a plan for opencv to support ".tflite" file format?