【问题标题】:What are *.tflite model output什么是 *.tflite 模型输出
【发布时间】:2021-03-31 23:43:52
【问题描述】:

这是我在 Android Studio 上导入的 tensorflow Lite 模型的代码:

enter image description here

这是我运行应用程序时的输出:

enter image description here

没看懂,怎么获取模型输出??

更新:

输出是 6 个元素的浮点数组,但我想要的是 Largesse 元素的索引,我试过这段代码:

enter image description here

对吗??我在每个预测中都得到相同的输出 1-

【问题讨论】:

  • floatArray 是你的输出
  • 但我想要的是它的 Largesse 元素的索引

标签: android android-studio tensorflow kotlin tensorflow-lite


【解决方案1】:

看起来你的 TFLite 模型生成了一个浮点数组形式的特征向量,它代表了图像数据的特征。

另见https://brilliant.org/wiki/feature-vector/

特征向量通常被认为是一种中间数据,它通常需要将特征向量再次放入附加模型中以进行图像分类或其他一些任务。

【讨论】:

  • 我可以把这个特征向量转换成这个数组float32[1,6]应该是输出吗??
  • 看起来 outputFeature0 是模型的输出。但是,由于缺少您的 TFLite 模型的信息,我不确定它是什么。它可以包含图像分类结果或我在上面评论中提到的特征向量。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-01-05
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-03-20
  • 1970-01-01
相关资源
最近更新 更多