遵循这份官方的TF指南:https://www.tensorflow.org/lite/guide/python
也尝试过这个方法:https://github.com/tensorflow/examples/tree/master/lite/examples/image_classification/raspberry_pi
然而,我被错误的ImportError: No module named tflite_runtime.interpreter
困住了。
在我的py文件中,我有import tflite_runtime.interpreter as tflite
。
硬件:覆盆子Pi零2W
发布于 2022-01-14 06:26:57
https://pypi.org/project/tflite-runtime是最近更新的。我觉得下面的方法很管用。
$ pip3 install tflite-runtime
https://stackoverflow.com/questions/70655633
复制相似问题