Skip to content
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

[whisper] fix decoding maxlen #2380

Merged
merged 1 commit into from
Mar 4, 2024
Merged

[whisper] fix decoding maxlen #2380

merged 1 commit into from
Mar 4, 2024

Conversation

Mddct
Copy link
Collaborator

@Mddct Mddct commented Mar 4, 2024

原生whisper在wenet上解码时,有的不会停止, encoder_out 的size 作为maxlen 会超过 decoder embed的max len

截屏2024-03-04 13 31 29 wav/test/S0915/BAC009S0915W0303.wav

修改后正确解码:

2024-03-04 13:29:56,745 INFO attention wav/test/S0915/BAC009S0915W0303.wav 今后所有空调产品还将实现联机运行

@Mddct Mddct force-pushed the Mddct-whisper-maxlen branch from 2b9e7d2 to 6e064cf Compare March 4, 2024 05:28
@Mddct Mddct requested a review from xingchensong March 4, 2024 05:31
@xingchensong xingchensong merged commit 8f8cedc into main Mar 4, 2024
6 checks passed
@xingchensong xingchensong deleted the Mddct-whisper-maxlen branch March 4, 2024 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants