-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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] change default initializer to kaiming_uniform #1577
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zh794390558
reviewed
Mar 17, 2022
zh794390558
reviewed
Mar 22, 2022
zh794390558
reviewed
Mar 22, 2022
zh794390558
approved these changes
Mar 22, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
conformer 有 4 种 带参数的 API。
类型 1 和 2 没有默认对齐:
本 PR 对齐了 wenet 的 conformer 初始化。 另外,paddle 的 kaiming_uniform 和 torch的 kaiming_uniform 没有对齐,所以对API 进行了 hack,从而实现对齐。
目前使用aishell数据集,在 dist_sampler模式训练下,不使用speed_perturb, conformer 可以达到 4.88%。比原先 5.6 % 的结果提升了 0.72%的绝对 CER。和 wenet 不用 speed_perturb 得到的 4.81% 的结果只相差 0.07% (wenet 使用 speed_perturb 时结果为 4.61% )。
Fix #1575