我看过几本有关如何运行tflite模型进行图像分类的教程,但不知道如何为其他任何应用程序使用它。例如,我有一个模型,该模型以以下形式接收音频数据: (16000,1)个数组。如何将该数组传递到tflite模型中?
TensorFlow Lite
提供了我们在移动,嵌入式和IoT设备上转换和运行TensorFlow models
所需的所有工具。
要将model
与TensorFlow Lite
一起使用,我们必须将完整的TensorFlow model
转换为TensorFlow Lite
格式。我们无法使用TensorFlow Lite
创建或训练模型。因此,我们必须以常规的TensorFlow model
开始,然后是convert the model。
请参阅准备在应用程序中使用的预训练模型的完整列表:in Models。
如果我们设计并训练了自己的TensorFlow模型,或者训练了从其他来源获得的模型,则必须将其转换为TensorFlow Lite格式。
参考: TensorFlow Lite