-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Redundant decoder in ESPnetASRModel when ctc_weight is 1.0 #4908
Comments
Thanks! |
I changed the previous behavior mainly because the For that purpose, I add a What's your opinion on it? |
This will affect our previous CTC configs and models. |
I see. So I will add a warning msg and recover the previous options. thanks for bringing up the issue. |
Actually, I think the decoder should be |
Yeah, I thought that would be better, but the only concern I had at the time is that, it may lead to some issues to other parts (e.g., test functions etc.) Anyway, since we brought up the issue, let's just do it and fixes issues with the change. |
Describe the bug
When
ctc_weight=1.0
, the ESPnetASRModel should not have a decoder in its parameters, regardless of the decoder config. However, now it will add a default RNN decoder.Note that the typical way to use CTC only is to set
ctc_weight: 1.0
and removedecoder
anddecoder_conf
in the training config.I believe this bug is introduced in a recent commit, because it worked well previously.
https://github.com/espnet/espnet/blob/master/espnet2/asr/espnet_model.py#L146
It should be something like this:
The text was updated successfully, but these errors were encountered: