Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6404 Discussions

Error when converting ONNX with Model Optimizer

喜一_三_
Beginner
768 Views

An error occurs when converting ONNX with Model Optimizer.

I am new to OpenVINO.
How do you deal with it?

C:\Program Files (x86)\IntelSWTools\openvino_2019.3.379\deployment_tools\model_optimizer>python mo.py --input_model model.onnx --output_dir c:\work\
Model Optimizer arguments:
Common parameters:
        - Path to the Input Model:      C:\Program Files (x86)\IntelSWTools\openvino_2019.3.379\deployment_tools\model_optimizer\model.onnx
        - Path for generated IR:        c:\work\
        - IR output name:       model
        - Log level:    ERROR
        - Batch:        Not specified, inherited from the model
        - Input layers:         Not specified, inherited from the model
        - Output layers:        Not specified, inherited from the model
        - Input shapes:         Not specified, inherited from the model
        - Mean values:  Not specified
        - Scale values:         Not specified
        - Scale factor:         Not specified
        - Precision of IR:      FP32
        - Enable fusing:        True
        - Enable grouped convolutions fusing:   True
        - Move mean values to preprocess section:       False
        - Reverse input channels:       False
ONNX specific parameters:
Model Optimizer version:        2019.3.0-408-gac8584cb7
[ ERROR ]  Can not deduce `reduce_axis` for ReduceMax: only one in_port and no `axis` parameter.
Exception occurred during running replacer "None" (<class 'extensions.front.reduce_axis_normalizer.ReduceAxisNormalizer'>): Can not deduce `reduce_axis` for ReduceMax: only one in_port and no `axis` parameter.

0 Kudos
1 Solution
Sahira_Intel
Moderator
768 Views

Hi,

Thank you for providing your model. It looks like the ONNX reduce operations have not been implemented in this version of OpenVINO yet. 

I hope this information is helpful.

Best Regards,
Sahira 

 

View solution in original post

0 Kudos
4 Replies
Sahira_Intel
Moderator
768 Views

Hi,

Can you please attach your ONNX model so I can convert on my end? 

It looks like the error is thrown from reduce_axis_normalizer.py.

Best Regards,

Sahira 

0 Kudos
喜一_三_
Beginner
768 Views

Hello.
Attach onnx file (compressed to ZIP file)
please confirm.
Best Regarts,

 

 

 

0 Kudos
Sahira_Intel
Moderator
769 Views

Hi,

Thank you for providing your model. It looks like the ONNX reduce operations have not been implemented in this version of OpenVINO yet. 

I hope this information is helpful.

Best Regards,
Sahira 

 

0 Kudos
喜一_三_
Beginner
768 Views

Hello.
I understood the content.
Thank you very much.

0 Kudos
Reply