Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

How to optimize resnet_v2_50 for tensorflow? (OpenVINO 2018.R3 / R4)

li__lang
Beginner
484 Views

I have downloaded the model file of resnet_v2_50 from https://github.com/tensorflow/models/tree/master/official/resnet which is saved_model.pb for FP32, but I cannot generate the optimized model by using the following command:

     sudo python mo_tf.py --saved_model_dir /path/to/model_dir  --data_type FP32

And, I get the error information like this:

error_info.png

0 Kudos
3 Replies
Severine_H_Intel
Employee
484 Views

Dear Lang, 

you must provide an input shape for the model. The MO does not support dynamic input shape ( the -1 ). Add --input_shape <positive_number> to your command.

Best, 

Severine

0 Kudos
li__lang
Beginner
484 Views

Dear Severine,

I test the two commands like:

--input_shape [224,224,3] and --input_shape [1, 224,224,3], 

then I get the following result:

error_again_info.png

What's wrong?

Best,

Lang

0 Kudos
li__lang
Beginner
484 Views

Can anyone help me?

0 Kudos
Reply