如何从保存的模型生成我的tflite文件

时间:2019-11-18 10:26:37

标签: python android tensorflow

此命令出现以下错误

tflite_convert --saved_model_dir=exported_model_directory/saved_model --output_file=detect.tflite

错误

    tflite_model = converter.convert()
  File "c:\users\public\anaconda3\lib\site-packages\tensorflow_core\lite\python\lite.py", line 428, in convert
    "invalid shape '{1}'.".format(_get_tensor_name(tensor), shape_list))
ValueError: None is only supported in the 1st dimension. Tensor 'image_tensor' has invalid shape '[None, None, None, 3]'.

0 个答案:

没有答案