【发布时间】:2019-05-16 23:37:14
【问题描述】:
我们正在使用 tensorflow-lite 开发 android 中的语义分割应用程序。使用的“.tflite”deeplabv3 模型具有 (ImageTensor) uint8[1,300,300,3] 类型的输入和 (SemanticPredictions) uint8[300,300] 类型的输出。在 tflite.run 方法的帮助下,我们成功地运行了模型并获得了 ByteBuffer 格式的输出。但是我们无法从 java 中的输出中提取图像。使用 pascal voc 数据集训练的模型是实际上从 TF 模型转换为 tflite 格式:'mobilenetv2_dm05_coco_voc_trainval'。
问题似乎类似于以下stackoverflow问题:tensorflow-lite - using tflite Interpreter to get an image in the output
处理浮点数据类型转换的相同问题似乎已在 github 问题中得到修复:https://github.com/tensorflow/tensorflow/issues/23483
那么,我们如何才能正确地从 UINT8 模型输出中提取分割掩码?
【问题讨论】:
标签: android tensorflow-lite semantic-segmentation deeplab