mantasp / barracuda-release

Temp storage Unity Inference Engine builds
Other
11 stars 5 forks source link

NotSupportedException: Format version not supported: 241 #10

Closed vra closed 4 years ago

vra commented 4 years ago

Hi all! I convert a pytorch model to onnx with pytorch version 1.0,0, when load the onnx file using modelloder, error comes:

_model = ModelLoader.Load(myModelPath)

error:

NotSupportedException: Format version not supported: 241
Unity.Barracuda.ModelLoader.Load (System.IO.BinaryReader fileReader, System.Boolean verbose, System.Boolean applyPatching, System.Boolean skipWeights) (at D:/ThreeDPoseTracke_yunran_taobao_v2/ThreeDPoseTracker_yunran_taobao_v2/Library/PackageCache/com.unity.barracuda@1.0.0/Barracuda/Runtime/Core/ModelLoader.cs:70)
Unity.Barracuda.ModelLoader.Load (System.String filepath, System.Boolean verbose, System.Boolean skipWeights) (at D:/ThreeDPoseTracke_yunran_taobao_v2/ThreeDPoseTracker_yunran_taobao_v2/Library/PackageCache/com.unity.barracuda@1.0.0/Barracuda/Runtime/Core/ModelLoader.cs:40)
TmpBarracudaRunner.Start () (at Assets/Scripts/TmpBarracudaRunner.cs:232)

Does this mean my pytorch version is too new? But I guess pytorch 1.0.0 is a quite normal version for now. Could you please help me with this? Thanks in advance.

vra commented 4 years ago

Solved at here.