Search code examples
python-3.xtensorflowobject-detectionobject-detection-api

Incomplete shape error when try to export inference in tensor flow object detection api


I trained custom object detector with loss 2.x , when i try to export it i am getting the following error

I came across this : 'Parsing Inputs... Incomplete shape' error while exporting the inference graph in Tensorflow

But Iam sure label is same : I ran it multiple times

python3 export_inference_graph.py --input_type image_tensor       --pipeline_config_path training/inception_v2.config --trained_checkpoint_prefix training/model.ckpt-688 --output_directory trained-inference-graphs/output_inference_graph_v1

I'm getting the error :

114 ops no flops stats due to incomplete shapes. Parsing Inputs... Incomplete shape.

For complete report please check : https://pastebin.com/mGSBDgJC

Edit : The model is detecting with eval using python3 eval.py --logtostderr --pipeline_config_path=/home/ic/Documents/objectExtraction/workspace/training_demo/training/inception_v2.config --checkpoint_dir=/home/ic/Documents/objectExtraction/workspace/training_demo/training --eval_dir=/home/ic/Documents/objectExtraction/workspace/training_demo/eval


Solution

  • This happens since you didn't state what is the input resolution with the argument input_shape. It simply means that it cannot compute how many flops an operation will take, since it doesn't know what the input resolution will be. You can still use the exported graph for inference without problem.