使用 NativeScript 的 Tensorflow lite
Tensorflow lite with NativeScript
我正在尝试使用 NativeScript 创建一个移动应用程序。由于此模型所在的设备 运行 是移动设备,因此使用 tflite 模型很有意义。我的问题是如何将 tflite 与 javascript 一起使用。如果这不可能,tensorflow.js 在移动设备上使用是否有效??
NOTE: I did look through the documentation of tensorflow.js and didn't find a module for tflite
您可以通过 nativescript firebase plugin 使用自定义模型。
您需要将以下内容添加到 firebase.nativescript.json 以启用自定义模型功能
"ml_kit_custom_model": true,
然后您可以按照 firebase 的官方 docs and some additional configs 添加您的自定义模型 (tensorflow lite),这需要在 Nativescript 端完成。
我正在尝试使用 NativeScript 创建一个移动应用程序。由于此模型所在的设备 运行 是移动设备,因此使用 tflite 模型很有意义。我的问题是如何将 tflite 与 javascript 一起使用。如果这不可能,tensorflow.js 在移动设备上使用是否有效??
NOTE: I did look through the documentation of tensorflow.js and didn't find a module for tflite
您可以通过 nativescript firebase plugin 使用自定义模型。
您需要将以下内容添加到 firebase.nativescript.json 以启用自定义模型功能
"ml_kit_custom_model": true,
然后您可以按照 firebase 的官方 docs and some additional configs 添加您的自定义模型 (tensorflow lite),这需要在 Nativescript 端完成。