Skip to content

"Onnx Type not supported" error while importing Custom Vision ONNX model #3900

Closed
@venkateshkrc

Description

@venkateshkrc

System information

  • OS version/distro: Win 10 Pro Build 17763.503
  • .NET Version (eg., dotnet --info): .Net FrameWork 4.7.2
  • ML.NET Version:1.1.0
  • ONNX Version:: 1.0 / 1.2

Issue

  • What did you do?
    Exported a image classification(General(Compact)) ONNX model from Custom Vision and attempted to generate a ONNX Estimator in ML.NET

  • What happened?
    The model loading failed with error "Onnx type not supported".
    This happens with all image classification ONNX models exported from Custom Vision.
    Corresponding Tensorflow models work well in ML.NET.

  • What did you expect?
    It is possible to load ONNX models exported from Tensorflow/Scikit-learn. ML.NET should be able to accept ONNX models from Custom Vision.

Source code / logs

var onnxEstimator = mLContext.Transforms.ApplyOnnxModel(OutputColumnNames, InputColumnNames, OnnxModelPath);

Files

onnx12.zip

Metadata

Metadata

Assignees

Labels

P0Priority of the issue for triage purpose: IMPORTANT, needs to be fixed right away.bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions