Closed AlexanderSlav closed 2 years ago
@lazarevevgeny could you please help?
@AlexanderSlav looks like this model uses ONNX* Resize Opset-11 version which is not supported by the Model Optimizer. Just as stated in documentation, Resize Opset-10 version is supported. This would explain the error on such node (266), if you can share the .onnx model file it would be great.
@avitial Hi, my first thought was to downgrade opset version to 10, but i had following error during export to onnx:
ONNX export failed: Couldn't export operator aten::upsample_bilinear2d
And solution is to upgrade the opset version to 11 :
https://github.com/pytorch/pytorch/issues/29980#issuecomment-554725530
Should I use your email to share .onnx model ?
@AlexanderSlav currently OpenVINO does not support Resize-11 operation which is produced by onnx when you convert the PyTorch model. As a workaround you can try to use other PyTorch resize-like operation and convert the model with opset-10.
@lazarevevgeny Thanks, I'll try!
Hi, I'm trying to convert DeepLabV3 with ResNet18 encoder (the implementation was taken from https://github.com/qubvel/segmentation_models.pytorch) to IR format. I've already converted pytorch model to onnx(opset version 11) format using following code:
My OpenVino version is 2020.2 There's an error occurred when i try to run mo.py with next command:
python mo.py --path_to_model/deeplab_resnet18.onnx --input_shape [1,3,480,832] --output_dir output_dir/deeplab_IR
_Error: Cannot infer shapes or values for node "266"._ I've already checked this in official documentation:
But still, I don't get a point where i made a mistake.
The MO logs:
Any chance of getting help on this? I'll be glad of any help or advice.