无法将 tensorflow 模型转换为 tflite
Unable to convert the tensorflow model to tflite
张量的输入大小与张量的输出大小不匹配
我在命令提示符下执行了以下命令
tflite_convert /
--output_file=C:\Users\TS-PC04\Desktop\toutput.tflite /
--graph_def_file=C:\Users\TS-PC04\Desktop\t.pb /
--input_shape=1,513,513,3 /
--input_arrays=ImageTensor /
--output_arrays=SemanticPredictions
我得到的错误是
检查失败:input_shape.dims().size() == op->size.size()(4 对 3)。
pip install --upgrade tensorflow
.
这对我有用,我成功地将 .pb 转换为 .tflite
张量的输入大小与张量的输出大小不匹配
我在命令提示符下执行了以下命令
tflite_convert /
--output_file=C:\Users\TS-PC04\Desktop\toutput.tflite /
--graph_def_file=C:\Users\TS-PC04\Desktop\t.pb /
--input_shape=1,513,513,3 /
--input_arrays=ImageTensor /
--output_arrays=SemanticPredictions
我得到的错误是 检查失败:input_shape.dims().size() == op->size.size()(4 对 3)。
pip install --upgrade tensorflow
.
这对我有用,我成功地将 .pb 转换为 .tflite