【发布时间】:2019-04-08 00:46:00
【问题描述】:
我正在尝试使用 Tensorflow-for-poets-2 TFLite 教程的工作流程,https://codelabs.developers.google.com/codelabs/tensorflow-for-poets-2-tflite/#6
但是,我正在尝试进行样式转换,而不是图像分类。这意味着我的网络的输入和输出都是图像(与原始示例相比,输入是图像,输出是分数列表)。
我的许多问题之一是从 tflite 推理中获取输出处理后的图像:
加载 tflite 模型后,我有 tflite 解释器 tflite 。 使用这个解释器我运行推理:
tflite.run(imgData, Out_imgData);
在哪里
imgData, Out_imgData
是 ByteBuffers,创建方式与 Tensorflow-for-poets-2 TFLite 教程中相同,https://codelabs.developers.google.com/codelabs/tensorflow-for-poets-2-tflite/#6。
现在我的推理输出为 ByteBuffer
Out_imgData
当推理输出是图像时,我找不到示例。请帮我将浮动 ByteBuffer Out_imgData 转换为位图图像。或者给我举个例子。
视觉问题描述: 在 python 中使用 tflite Interpreter,我得到输出图像: enter image description here
【问题讨论】:
标签: tensorflow-lite