-
Notifications
You must be signed in to change notification settings - Fork 1.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
[firred] bring fired aed to wenet #2680
Merged
Merged
+874
−46
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
2428b08
to
aebba69
Compare
encoder partfrom fireredasr.models.fireredasr import FireRedAsr
wav_paths = ['../../test/resources/aishell-BAC009S0724W0121.wav']
red_model = FireRedAsr.from_pretrained("aed", "pretrained_models/FireRedASR-AED-L")
red_feats, lengths, durs = red_model.feat_extractor(wav_paths)
red_enc_outputs, _, enc_mask = model.model.encoder(red_feats, lengths)
wenet_encoder = model.encoder
wenet_enc_outs, _ = wenet_encoder(feats, feats_lens)
torch.allclose(wenet_enc_outs, red_enc_outputs) # True decoder partdecoder 是标准的transformer decoder, 这里会放aishell的解码结果 layer by layer的比对这里就不做了
ec: 虽 然 知 道 惠 若 琪 的 心 脏 不 太 好
===========================================================================
Overall -> 0.55 % N=104765 C=104230 S=468 D=67 I=46
Mandarin -> 0.55 % N=104762 C=104230 S=465 D=67 I=46
English -> 0.00 % N=0 C=0 S=0 D=0 I=0
Other -> 100.00 % N=3 C=0 S=3 D=0 I=0
=========================================================================== |
xingchensong
approved these changes
Feb 8, 2025
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.
https://github.com/FireRedTeam/FireRedASR/tree/main
目前Firred-LLM 没有release, 等release, 同步看下AED encoder 和LLM encoder区别 ,然后转过来
FireRedTeam/FireRedASR#5 (comment)