tensorflow: Unable to convert .pb to .tflite
System information
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Window 10
- TensorFlow installed from (source or binary): python -m pip install tensorflow==1.15
- TensorFlow version (or github SHA if from source): 1.15
I am currently trying to convert .pb file from export_tflite_ssd_graph.py into a .tflite file and encountered these error:
2019-11-11 06:45:44.042588: F tensorflow/lite/toco/tooling_util.cc:935] Check failed: GetOpWithOutput(model, output_array) Specified output array “‘TFLite_Detection_PostProcess’” is not produced by any op in this graph. Is it a typo? This should not happen. If you trigger this error please send a bug report (with code to reporduce this error), to the TensorFlow Lite team. Fatal Python error: Aborted
This is what i try to run
tflite_convert --output_file=C:/tensorflow1/models/research/object_detection/inference_graph/detect.tflite --graph_def_file=C:/tensorflow1/models/research/object_detection/inference_graph/tflite_graph.pb --inference_type=FLOAT --inference_input_type=QUANTIZED_UINT8 --input_arrays=normalized_input_image_tensor --input_shapes=1,300,300,3 --output_arrays='TFLite_Detection_PostProcess','TFLite_Detection_PostProcess:1','TFLite_Detection_PostProcess:2','TFLite_Detection_PostProcess:3' --mean_values=128 --std_dev_values=128 --change_concat_input_ranges=false --allow_custom_ops
Link is the full traceback: https://pastebin.com/xJ1vZGmd
I’ve also check from https://stackoverflow.com/questions/52918051/how-to-convert-pb-to-tflite-format and confirm that the output array is TFLite_Detection_PostProcess
output name =
TFLite_Detection_PostProcess
Input name =
normalized_input_image_tensor
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 19 (8 by maintainers)
yes. only training done on local machine.