Inconsistent output from onnx and jit #90
-
Hi @snakers4 I tried both the lang_classifier_95.onnx and lang_classifier_95.jit and found when fed with the same input, the outputs are different(with large enough margin). Based on the name, I guess they are exported from the same pytorch model. Why are the outcome different? Please help! Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Hi, Can you please provide a more concrete example, i.e. audio you used + code + the results? |
Beta Was this translation helpful? Give feedback.
-
Sure!
Audio file can be found here |
Beta Was this translation helpful? Give feedback.
-
PyTorchONNXThe results look pretty close to me |
Beta Was this translation helpful? Give feedback.
-
Yeah! The language probability is similar, but the logits are different. |
Beta Was this translation helpful? Give feedback.
-
Logits are passed through softmax |
Beta Was this translation helpful? Give feedback.
PyTorch
ONNX
The results look pretty close to me
I am not the biggest expert, I have heard people and my friend speak Thai in Thailand, the audio sounds tonal and resembles Thai