- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a Efficientdet model trained on my custom dataset.
OpenVINO version 2021.1
Tensorflow 2.4.0
The command used to convert to IR models:-
Please give me a solution for this error.
Thank you in advance.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @dilip96
Thank you for posting on the Intel® communities.
We noticed that this is regarding Intel® OpenVINO™. We have a forum for those specific products and questions so we are moving it to the Intel® Distribution of OpenVINO™ Toolkit Forum so it can get answered more quickly.
Best regards,
Andrew G.
Intel Customer Support Technician
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Dilip,
Thanks for reaching out to us. I don't find any attachments with this thread. Could you please reattach your files for us to have a look?
Additionally, for your information, the error 'ascii' codec can't decode byte generally happens when you try to convert a Python 2.x str that contains non-ASCII to a Unicode string without specifying the encoding of the original string.
Regards,
Munesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I too am facing a similar issue. I have trained an efficientdet-d0 model on my custom dataset.
OpenVINO version 2021.1
Tensorflow 2.4.0
Before conversion, within the automl_efficientdet.json file, I changed the value of 'num_classes' from 90 to 9 to reflect the custom objects my model has to detect.
I used the following command to convert my .pb model to IR format:
python /home/dexter/ML/openvino/model-optimizer/mo.py --input_model savedmodeldir-custom_512/efficientdet-d0_frozen.pb --transformations_config /home/dexter/ML/openvino/model-optimizer/extensions/front/tf/automl_efficientdet.json --input_shape "[1, 512, 512, 3]"
This is the error message that is generated:
[ ERROR ] Cannot infer shapes or values for node "Reshape".
[ ERROR ] Number of elements in input [ 1 64 64 81] and output [1, 3686, 90] of reshape node Reshape mismatch
[ ERROR ]
[ ERROR ] It can happen due to bug in custom shape infer function <function Reshape.infer at 0x7fd475b0dc20>.
[ ERROR ] Or because the node inputs have incorrect values/shapes.
[ ERROR ] Or because input shapes are incorrect (embedded to the model or passed via --input_shape).
[ ERROR ] Run Model Optimizer with --log_level=DEBUG for more information.
[ ERROR ] Exception occurred during running replacer "REPLACEMENT_ID" (<class 'extensions.middle.PartialInfer.PartialInfer'>): Stopped shape/value propagation at "Reshape" node.
I have uploaded my model in .pb format as well as the config.yaml file that I used during training. The error messages produced from setting log_level=DEBUG are also present.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Dexter,
Thanks for reaching out to us. Since yours is a different use case, please open a new thread for us to better serve you.
Regards,
Munesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Dilip,
Thank you for your question. If you need any additional information from Intel, please submit a new question as this thread is no longer being monitored.
Regards,
Munesh
![](/skins/images/872293744008A34B36F8ABF94A46CC66/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page