Quantcast
Channel: AI Beta - Unity Discussions
Viewing all articles
Browse latest Browse all 109

Understand-sentis-workflow / ClassifyHandwrittenDigit example import error

$
0
0
  1. Download a handwriting recognition ONNX model file, for example the MNIST Handwritten Digit Recognition model mnist-8.onnx from the ONNX Model Zoo, and drag it into the Assets folder of the Project window.

It seems that the link to the ONNX model file is no longer available, and it has been moved to the following location:

If you add the mnist-8.onnx file to the Asset folder, the following error pops up.

InvalidProtocolBufferException: Protocol message contained a tag with an invalid wire type.
Google.Protobuf.UnknownFieldSet.MergeFieldFrom (Google.Protobuf.ParseContext& ctx) (at :0)
Google.Protobuf.UnknownFieldSet.MergeFieldFrom (Google.Protobuf.UnknownFieldSet unknownFields, Google.Protobuf.ParseContext& ctx) (at :0)
Google.Protobuf.UnknownFieldSet.MergeFieldFrom (Google.Protobuf.UnknownFieldSet unknownFields, Google.Protobuf.CodedInputStream input) (at :0)
Onnx.ModelProto.MergeFrom (Google.Protobuf.CodedInputStream input) (at ./Library/PackageCache/com.unity.sentis@1.3.0-pre.2/Runtime/ONNX/Generated/Onnx.cs:1645)

Asset import failed, “Assets/mnist-8.onnx” > InvalidProtocolBufferException: Protocol message contained a tag with an invalid wire type.
Google.Protobuf.UnknownFieldSet.MergeFieldFrom (Google.Protobuf.ParseContext& ctx) (at :0)
Google.Protobuf.UnknownFieldSet.MergeFieldFrom (Google.Protobuf.UnknownFieldSet unknownFields, Google.Protobuf.ParseContext& ctx) (at :0)
Google.Protobuf.UnknownFieldSet.MergeFieldFrom (Google.Protobuf.UnknownFieldSet unknownFields, Google.Protobuf.CodedInputStream input) (at :0)
Onnx.ModelProto.MergeFrom (Google.Protobuf.CodedInputStream input) (at ./Library/PackageCache/com.unity.sentis@1.3.0-pre.2/Runtime/ONNX/Generated/Onnx.cs:1645)

Unity 2022.3.16f1
Sentis 1.3.0-pre.2

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 109

Trending Articles