【问题标题】:tflite flutter application gives only one outputtflite 颤振应用程序仅提供一个输出
【发布时间】:2023-03-16 01:12:02
【问题描述】:

在使用 tflite 时,我得到的输出是 output = [{confidence: 0.8115850687026978, index: 90, label: cynoglossum lanceolatum}]

很明显,只有一个 put,我使用的模型是从 Teachable machine 训练的。 如何从被识别的图像中获得多个输出

【问题讨论】:

    标签: flutter tensorflow-lite


    【解决方案1】:

    当您运行模型时,有一个属性 numResults 默认为 1。您可以更改以获得更多结果。

    var recognitions = await Tflite.runModelOnImage(
      path: image.path,
      numResults: 1,
      threshold: 0.05,
      imageMean: 127.5,
      imageStd: 127.5,
    );
    

    【讨论】:

    • 你知道我在哪里可以找到描述 runModelOnImage 的每个参数的文档吗?
    • 可能您已经访问过,但您可以查看pub.dev/documentation/tflite/latest也许您会发现它有用。
    • 很遗憾,该页面上没有描述任何参数。
    猜你喜欢
    • 2021-07-12
    • 1970-01-01
    • 2021-11-01
    • 2021-03-20
    • 1970-01-01
    • 2019-11-03
    • 2021-10-23
    • 2022-08-17
    • 2021-05-16
    相关资源
    最近更新 更多