-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ASR onnx export accuracy drop #49
Comments
Which models are you using? In addition, to debug all functions, we are also trying to implement a test to cover many functions to produce the same results. |
Hi Shinji, I am using aishell model from https://zenodo.org/record/4105763#.YzELWtJBxAJ. I have found that the issue may be caused by the Legacy Relpos attention layer, which gave me different results between onnx and .pt model file. |
Thanks! |
Hi @yuekaizhang, thank you for reporting the issue! |
I am exporting the same model, the onnx cer is 11.7%, while the torch infer cer is 4.7% |
@Masao-Someki Could you plz look at this model? |
@yuekaizhang @pengaoao |
thanks, Im trying to test on the aishell, there is something wrong 2022-10-09 02:24:56.152717163 [W:onnxruntime:, execution_frame.cc:812 VerifyOutputSizes] Expected shape from model of {1,24} does not match actual shape of {1,108} for output encoder_out_lens Traceback (most recent call last): export script: m = ASRModelExport() infer script: def findAllFile(base): #init_acl(0) |
I change the torch version to 1.12, the error disappear, I m testing the acc |
I test on 3000 files with ctc_weight=0.3, the cer is 14%, the problem seems not be solved |
CER 7.43% with ctc=0.5, cer 8.92% with CTC=0.3, still something wrong |
Except for the ctc=0.3, I set the decoder=0.7 lm=0.3 and then the cer is right. |
Thank you @pengaoao, we have fixed bugs in the stft frontend and now we can get exactly the same result. |
hi @Masao-Someki, |
@sanjuktasr |
Hi, I was wondering if you test the accuracy using espnet onnx. I have encountered accuracy drop issue from ~5% wer to 12% wer after using onnx. Just wondering if anyone encounter the same issue.
The text was updated successfully, but these errors were encountered: