This code helps to efficiently convert and test a model to tflite.
- Install tflite.runtime with Python wheel
To get the tflite_runtime python wheel, go to this link : https://google-coral.github.io/py-repo/tflite-runtime/
Download and install the right file, taking in consideration python version and OS.
To install in Python, type in terminal: pip install (path to .whl file)
- Adapt the testing code to your model input size