i have been referring to the steps in the openvino on how to convert .pb and savedmodel using model optimizer but always encounter error. i trained simple model (for eg cars and jets) at this website: https://teachablemachine.withgoogle.com/train/image
then i converted the keras .h5 model from the website to .pb and savedmodel.
method 1 conversion using .pb
python mo_tf.py --input_model frozen_model.pb –-input_shape [1,224,224,3] –-tensorflow_subgraph_patterns “sequential_1_1/model1/bn_Conv1/.*”
method 2 conversion using savedmodel
python mo_tf.py --saved_model_dir model.savedmodel –-input_shape [1,224,224,3] –-tensorflow_subgraph_patterns “sequential_1_1/model1/bn_Conv1/.*”
note: i just installed latest 2020 OpenVINO
Pls advise. Been trying this for few days.
It seems that there is an issue while saving the output file to the directory that you are working on.
There are two possible solutions for this issue.
From the error log, the model optimizer requires --input parameter to be passed as command line argument.
Please add --input input_1 parameter along with the command used to convert the saved_model to IR files.
Can you confirm that you are using same models. If yes, is there any particular reason to use the saved model?
Also, Have you tried to inferencing of model using the 1st method?
yes same models, trained from the same dataset. it's just for learning purpose trying out different format .pb and savedmodel.
yes i had tried inferencing using the 1st method. it works. but i notice the accuracy isn't high. anyway will experiment more.