遵循这份官方的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-12 08:15:03
解决方案
pip3 install tflite-runtime
紧接着是
sudo apt-get install libatlas-base-dev
避免错误:Traceback (most recent call last): File "/home/pi/.local/lib/python3.7/site-packages/numpy/core/__init__.py", line 22, in <module> from . import multiarray
发布于 2022-01-14 06:26:57
https://pypi.org/project/tflite-runtime是最近更新的。我觉得下面的方法很管用。
$ pip3 install tflite-runtimehttps://stackoverflow.com/questions/70655633
复制相似问题