Audio classification will produce different results on different runs #355
Replies: 9 comments 1 reply
-
@tabatinga0x00 Is it possible to share the TFLite model and the reproducible project? In most cases, the exception at |
Beta Was this translation helpful? Give feedback.
-
According to the tensorflow API docs, The initializing order might be like this. // first call resize input tensor
interpreter.ResizeInputTensor(0, new int[] { 1, inputSize });
// then allocate it.
interpreter.AllocateTensors(); |
Beta Was this translation helpful? Give feedback.
-
@asus4 I'll share it.
it hasn't worked |
Beta Was this translation helpful? Give feedback.
-
@asus4 have you seen my email? Should I post the code here? |
Beta Was this translation helpful? Give feedback.
-
@tabatinga0x00 Please understand that I don't provide personal support by email. However, if you create a public PR (Pull Request) or a reproducible repository, I can take a look at it. |
Beta Was this translation helpful? Give feedback.
-
I ported a YAMNet-based audio classification example form TensorFlow Lite examples in this PR: The model architecture differs from your model but might help to solve your issue. |
Beta Was this translation helpful? Give feedback.
-
I copied the directory AudioClassification into Assets And arised this error:
|
Beta Was this translation helpful? Give feedback.
-
My model, if you'd need it |
Beta Was this translation helpful? Give feedback.
-
@tabatinga0xffff Your custom model is not related to this kind of error. Did you install "com.unity.collections" ? |
Beta Was this translation helpful? Give feedback.
-
Environment (please complete the following information):
Code
When run multiple times, that is, run a scene in Unity editor and then stop, it'll produce different results: 1, 0.98, 0.48, sometimes even 0. With the same audio file.
What's the matter?
And why will this
always fail?
Beta Was this translation helpful? Give feedback.
All reactions