Error when converting ONNX with Model Optimizer

Error when converting ONNX with Model Optimizer


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.

5 posts / 0 new

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 


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

 

 

 

Attachments: 

AttachmentSize
Downloadapplication/zip model.zip39.57 MB

Best Reply

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 

 


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

Leave a Comment

Please sign in to add a comment. Not a member? Join today