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.

OPENVINO ONNX Model with OPEST-11

ibrahimsoliman
Débutant
5 539 Visites

Hi, 

Currently, I am working on a custom network design of SSD (Single shot detection) using PyTorch. SSD requires Non Maximum Suppression (NMS) on its output layers. I am using torch.export.onnx method to export my model. 
I have already exported my model using onnx opset-11, since nms is only supported on opset > 9.

I have successfully optimized my model using OPENVINO optimizer (mo_onnx.py). 

I encountered an Error once I tried to load my IR using OPENVINO(Image attached),

Screenshot from 2020-07-06 22-37-34.png

When I visualize both models (ONNX opset-9 and onnx opset-11), i can see that there are some differences in the input shape of clip layer.  

11.jpg 

9.jpg


Any solution or suggestion to solve this problem? and how can the model pass openvino optimization, then it fails at loading? 

I am using latest openvino 2020.R3, and I tried using opset-10 and it doesn't work as well.

0 Compliments
1 Solution
6 Réponses
Max_L_Intel
Modérateur
5 525 Visites

Hi @ibrahimsoliman 
MobileNet SSD PyTorch topology has not been officially validated for ONNX-IR conversion via Model Optimizer, so unfortunately we cannot guarantee it is being workable with OpenVINO toolkit. You can find the list of supported PyTorch topologies here https://docs.openvinotoolkit.org/latest/_docs_MO_DG_prepare_model_convert_model_Convert_Model_From_ONNX.html#supported_pytorch_models_via_onnx_conversion

We apologize for the inconvenience.

Best regards, Max.

 

0 Compliments
ibrahimsoliman
Débutant
5 494 Visites

Ok, thanks.
Just want to mention that I removed NMS from SSD Pytorch then I can optimize and infer using OpenVINO. but unfortunately, I need to manually apply NMS on my output externally from my model inference.

0 Compliments
Max_L_Intel
Modérateur
5 486 Visites

Hi @ibrahimsoliman 

Thank you for sharing this information with OpenVINO community!

0 Compliments
ibrahimsoliman
Débutant
5 459 Visites

Hi, I have checked the release note for OpenVINO 2020.4, i noticed the support for clip-11 has been added.

Screenshot from 2020-07-18 09-39-22.png

 

I successfully run onnx model optimizer again including NMS, 
But when i load the network i got different error :

RuntimeError: get_shape was called on a descriptor::Tensor with dynamic shape

Screenshot from 2020-07-18 09-48-16.png

0 Compliments
Max_L_Intel
Modérateur
5 434 Visites
0 Compliments
Max_L_Intel
Modérateur
5 372 Visites

Intel will no longer monitor this thread since we have provided a solution.  If you need any additional information from Intel, please submit a new question.

0 Compliments
Répondre