Tensorflow 到 Tensorflow-lite 的转换
Tensorflow to Tensorflow-lite conversion
我正在尝试移植一些代码以在 Raspberry Pi 上运行。此代码使用 Tensorflow,但仅用于三个功能。
from tensorflow.keras.applications.mobilenet_v2 import preprocess_input
from tensorflow.keras.preprocessing.image import img_to_array
from tensorflow.keras.models import load_model
Instructions 说简单导入:
import tflite_runtime.interpreter as tflite
preprocess_input
、img_to_array
和 load_model
函数在 tensorflow-lite 中可用吗?如果是,我如何访问它们?如果否,是否有解决方法?
我正在尝试移植一些代码以在 Raspberry Pi 上运行。此代码使用 Tensorflow,但仅用于三个功能。
from tensorflow.keras.applications.mobilenet_v2 import preprocess_input
from tensorflow.keras.preprocessing.image import img_to_array
from tensorflow.keras.models import load_model
Instructions 说简单导入:
import tflite_runtime.interpreter as tflite
preprocess_input
、img_to_array
和 load_model
函数在 tensorflow-lite 中可用吗?如果是,我如何访问它们?如果否,是否有解决方法?