I have a Efficientdet model trained on my custom dataset.
OpenVINO version 2021.1
The command used to convert to IR models:-
Please give me a solution for this error.
Thank you in advance.
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.
Intel Customer Support Technician
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.
I too am facing a similar issue. I have trained an efficientdet-d0 model on my custom dataset.
OpenVINO version 2021.1
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.
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.