Unity-Technologies / barracuda-release

Other
561 stars 76 forks source link

Onnx Assertion Error #247

Closed sanarberkebayram01 closed 2 years ago

sanarberkebayram01 commented 2 years ago

There is a problem when i try to take inference from the model

I can clearly use onnx on pytorch and onnxruntime in python. Given assertion Error UnityEngine.Assertions.AssertionException: Assertion failure. Values are not equal. Expected: 32 == 1

AlexRibard commented 2 years ago

thank you for providing the model, we will take a look a it

sanarberkebayram01 commented 2 years ago

Any progress ?

AlexRibard commented 2 years ago

Yes, there was a few issues with our importer that I fixed. (changes are a bit too big to share on github). But they will make it for the next release.

One side note is about this pattern image This is extremely costly and our current kernels will not work for such a large input size. I'd suggest to re-import the model with a smaller size

let me know

(closing the issue as the problem has been fixed, but feel free to respond in the chat)

TUANANH-INU commented 1 year ago

Hi AlexRibard ! I am also working on a similar project and encountered the above error, do not know if barracuda has an updated version for this error so far.

UnityEngine.Assertions.AssertionException: Assertion failure. Values are not equal. Expected: 32 == 1

Currently I am using barracuda version 3.0 - March 01, 2022. But this error still appears.

Thanks.