- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi,
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.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Liong,
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.
- You can open the command prompt as Administrator and the re-run the command.
- You can also use -o parameter to save the output file in the specified output directory which does not require root access
Regards,
Ram prasad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Regards,
Ram prasad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Regards,
Ram prasad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
thanks
cltee
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page