How to convert optimized_graph.lite file to .tflite file?

466 Views Asked by At

I followed the steps mentioned in the codelab and generated optimized_graph.lite file successfully. As per documentation we need TensorFlow Lite model for inference in a mobile app in the form of a .tflite file.

How do we further generate the .tflite file?

2

There are 2 best solutions below

2
Dishonered On

There is no such thing as .tflite file , i searched the codelab project and did not find anything called a .tflite file.You only require tf_files/optimized_graph.lite.

0
Pannag Sanketi On

The generated optimized_graph.lite is the tflite flatbuffer file. In this codelab, for some reason they chose to use the .lite filename extension as opposed to .tflite.

So simply copy the optimized_graph.lite file and rename it to optimized_graph.tflite and you should be able to use it further to upload to firebase console or place in the assets folder.