【问题标题】:Use tensorflow.js model in android在 android 中使用 tensorflow.js 模型
【发布时间】:2020-06-05 20:35:33
【问题描述】:

tensorflow.js 中有一些很棒的模型用于面部网格检测、姿势检测等。如何在 Android 上使用这些模型?有没有办法将 tensorflow.js 模型转换为 tflite 模型?

【问题讨论】:

    标签: android tensorflow mobile tensorflow-lite


    【解决方案1】:

    您可以尝试先将您的 tf.js 模型转换为 Keras python 模型(请参阅https://github.com/tensorflow/tfjs/tree/master/tfjs-converter),然后将其转换为 lite 模型(请参阅https://www.tensorflow.org/lite/convert)。

    或者您可以直接在 node.js 服务器中运行您的模型而无需转换,然后将该服务器用作您的 android 应用程序的支持服务器。

    【讨论】:

    • 似乎并非所有 tf​​js 模型都可以转换为 keras .. 至少不能通过上述方法。我用面部网格模型尝试了上述方法,但失败了。
    • 你能分享一下你得到的代码和错误吗?
    猜你喜欢
    • 2021-10-10
    • 2019-02-20
    • 1970-01-01
    • 2021-06-10
    • 1970-01-01
    • 2020-03-16
    • 2021-09-11
    • 1970-01-01
    • 2020-10-29
    相关资源
    最近更新 更多