PS.请不要将我指向converting Keras model directly to tflite,因为我的.h5文件无法直接转换为.tflite。我设法把.h5文件转换成.pb
我跟踪了thisJupyter笔记本,使用Keras进行人脸识别。然后我将模型保存到model.h5
文件中,然后使用this将其转换为一个冻结的图形model.pb
。在
现在我想在Android中使用我的tensorflow文件。为此,我需要TensorFlowLite,它需要我将模型转换为.tflite
格式。在
为此,我尝试遵循官方的指导方针。如您所见,它需要input_array
和output_array
数组。如何从model.pb
文件中获取这些内容的详细信息?在
input arrays
和{对于Keras模型,
输入张量是第一层的占位符张量。在
输出张量可能与激活函数有关。在
^{pr2}$对于冻结图,
我们得到了节点的名字
为了得到张量
输入张量可以是占位符张量。输出张量是使用
session.run()
运行的张量对于转换,我们得到,
相关问题 更多 >
编程相关推荐