Community
cancel
Showing results for 
Search instead for 
Did you mean: 
li__lang
Beginner
104 Views

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

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
104 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

li__lang
Beginner
104 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

li__lang
Beginner
104 Views

Can anyone help me?

Reply