为什么我不能使用 AutoML VIsion TFLite 模型?

问题描述

我使用 Vision(GCP 功能生成自定义对象检测模型并在我的应用中使用它(根据此库:https://developers.google.com/ml-kit/vision/object-detection/custom-models/android

但是当我使用它时,它说:

Failed to initialize detector. Unexpected number of dimensions for output index 0: got 3D,expected either 2D (BxN with B=1) or 4D (BxHxWxN with B=1,W=1,H=1).

所以我决定使用 TFLite 任务库。当我用空白的黑色图像拍照时,它看起来很好。但是当我尝试用物体拍照时,它收到一个错误: 索引 0 处的维度为 [1,35,4] 的预期位置张量,找到 [1,40,4]

有什么办法可以解决这个问题吗?或者你能提出什么好的方法来使这项工作?

附言我已经查看并尝试使用来自 Standard TFlite object detection model not working in MLKit

的信息来解决

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)