Skip to content

use v1.9.0 to load ONNX Opset 15 failed. #9418

@Li-chunming

Description

@Li-chunming

Describe the bug
I have updated my ORT version to the latest v1.9.0, but when I try to load ONNX with opset 11,13,15, it always report this BUG:

Exception has occurred: Fail (note: full exception trace is shown but execution is paused at: <module>) [ONNXRuntimeError] : 1 : FAIL : Load model from D:\src\ONNXmodel\my_mrcnn_opset15.onnx failed:D:\a\_work\1\s\onnxruntime\core/graph/model_load_utils.h:57 onnxruntime::model_load_utils::ValidateOpsetForDomain ONNX Runtime only *guarantees* support for models stamped with official released onnx opset versions. Opset 15 is under development and support for this is limited. The operator schemas and or other functionality may change before next ONNX release and in this case ONNX Runtime will not guarantee backward compatibility. Current official support for domain com.microsoft is till opset 1. File "D:\Mask_RCNN-master\onnx_runsession.py", line 169, in <module> (Current frame) sess = onnxruntime.InferenceSession(model_file_name)

I was confused because I saw that the version description said:
ONNX 1.10 support
opset 15
ONNX IR 8 (SparseTensor type, model local functionprotos, Optional type not yet fully supported this release)
So what's the reason for this bug? And what do " opset 1" mean?
supplement:The model is converted from Tf1.8.0 and Keras2.2.0; I used to load it successfully with old ORT version 1.1.2.

System information

  • OS Platform and Distribution (Windows10):
  • ONNX Runtime version:1.9.0
  • ONNX (python packages) version:1.8.0
  • Tensorflow version;1.8.0
  • Python version:3.6.5
  • CUDA/cuDNN version:9.0/7.0
  • GPU model and memory:2070

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions