-
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
[ssl/w2vbert] weight copy from meta w2vbert-2.0 #2392
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
Mddct
force-pushed
the
Mddct-w2vbert-weights
branch
from
March 7, 2024 17:06
a56659e
to
f3e9bf1
Compare
Mddct
force-pushed
the
Mddct-w2vbert-weights
branch
from
March 8, 2024 18:02
51ffe46
to
9d10ad1
Compare
Mddct
force-pushed
the
Mddct-w2vbert-weights
branch
from
March 9, 2024 19:21
bb5b9e2
to
9b0d9f1
Compare
def compute_w2vbert_fbank(sample,
num_mel_bins=23,
frame_length=25,
frame_shift=10,
dither=0.0):
""" Extract Pretrain w2vbert(4.5M hours) fbank
"""
sample = compute_fbank(sample, num_mel_bins, frame_length, frame_shift,
dither)
mat = sample['feat']
std, mean = torch.std_mean(mat, dim=0)
mat = mat.subtract(mean).divide(std)
sample['feat'] = mat
return sample 删除这里,是因为这个可以放到w2vbert-conformer-600的拼帧的subsampling里边,未来导出模型,runitme自动支持, 不需要专门 |
需要考虑batch中padding对求均值和方差的影响吗? |
Mddct
changed the title
[ssl/w2vbert] weight copy from meta w2vbert-2.0
[WIP][ssl/w2vbert] weight copy from meta w2vbert-2.0
Mar 10, 2024
这里确实是个问题,后边会做个实验看看 或者干脆把拼帧换成卷积 |
Mddct
force-pushed
the
Mddct-w2vbert-weights
branch
from
March 11, 2024 08:26
f6571d9
to
4fba433
Compare
有四个注意点:
|
Mddct
changed the title
[WIP][ssl/w2vbert] weight copy from meta w2vbert-2.0
[ssl/w2vbert] weight copy from meta w2vbert-2.0
Mar 11, 2024
xingchensong
approved these changes
Mar 11, 2024
Is anyone still working on this PR? |
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.
#2305
meta开源的w2vbert2.0 的权重是在4Mh的数据上pretrain训练(支持流式), 模型是conformer,大小600M, 输入是fbank
diff 只有三处
其他实现均一致,
此次迁移,有潜在三大收益
https://twitter.com/reach_vb/status/1750225679898071232
该pr TODO:
之后prTODO: