What is the difference between the .lite and the .tflite formats

余生长醉 提交于 2020-01-14 16:35:44

问题


What is the difference between the .lite and the .tflite formats (TensorFlow formats)? And if there is no difference, why there are two of them?

In addition to the question, it seems that I can't upload my model with the .lite extension file to Firebase ML kit. What might be the reason for that?


回答1:


ML Developers first train a TensorFlow model, and then use TOCO to convert it to TensorFlow Lite model. When running the TOCO command, you can specify whatever output name for the converted Lite model. All TensorFlow Lite TOCO samples use .tflite extension; but .lite seems another popular extension people would like to choose.

So as long as it's a TensorFlow Lite FlatBuffer formatted model, TensorFlow Lite would be able to load / run the model regardless of the extension.

But unfortunately, ML Kit Console at this moment only takes files with .tflite extension. We can consider remove that enforcement. In the meantime, if you are sure it's a TensorFlow Lite model, simply rename the extension and upload it.



来源:https://stackoverflow.com/questions/52121533/what-is-the-difference-between-the-lite-and-the-tflite-formats

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!