【问题标题】:Explanation of parameters of Tflite.runModelOnImageTflite.runModelOnImage参数说明
【发布时间】:2021-12-31 08:44:52
【问题描述】:

有人可以解释这段代码的每一行吗? 比如imageMeanimageStdthreshold的目的是什么。

我真的找不到这个文档

Tflite.runModelOnImage(
     imageMean: 0.0,   
     imageStd: 255.0,  
     numResults: 2,    
     threshold: 0.1,  
     asynch: true,
     path: image.path,
)

这里是官方包:https://pub.dev/packages/tflite

【问题讨论】:

    标签: tensorflow tensorflow-lite


    【解决方案1】:

    在执行图像分类任务时,根据数据集均值和标准差对图像像素值进行归一化通常很有用。关于我们为什么需要这样做的更多原因可以在这个问题中找到:Why do we need to normalize the images before we put them into CNN?

    imageMean 是要在模型上运行的图像数据集的平均像素值,imageStd 是标准差。 threshold 值代表 classification threshold,例如高于阈值的概率值可表示为“分类为X类”,低于阈值的概率值表示“未分类为X类”。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-11-25
      • 2021-12-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-07-04
      • 1970-01-01
      相关资源
      最近更新 更多