[WIP]Add speaker recognition example#5327
Open
KPatr1ck wants to merge 13 commits intoPaddlePaddle:dev-staticfrom
Open
[WIP]Add speaker recognition example#5327KPatr1ck wants to merge 13 commits intoPaddlePaddle:dev-staticfrom
KPatr1ck wants to merge 13 commits intoPaddlePaddle:dev-staticfrom
Conversation
Member
|
@KPatr1ck any update? |
Contributor
Author
数据集,模型,loss,训练和预测脚本已齐。 |
Contributor
Author
ZeyuChen
reviewed
Jul 27, 2021
| for fc in self.blocks: | ||
| x = fc(x) | ||
|
|
||
| # KP: W和x的向量归一化,输出为余弦相似度,供Additive Angular Margin计算loss |
Member
There was a problem hiding this comment.
使用标准的注释
# NOTE(xxxxxgithuid or username): blabla
| return 10**(SNR / 20) | ||
|
|
||
|
|
||
| def convolve1d( |
| return (hlpf + hhpf).reshape([1, -1, 1]) | ||
|
|
||
|
|
||
| def reverberate(waveforms, |
Member
There was a problem hiding this comment.
参考SpeechBrain看这些基础function是否有注释
|
|
||
| id2embedding_norm.update(dict(zip(ids, embeddings))) | ||
|
|
||
| # Score normalization based on trainning samples. |
| __all__ = ['OpenRIRNoise'] | ||
|
|
||
|
|
||
| class OpenRIRNoise(Dataset): |
Member
There was a problem hiding this comment.
Need more comments for dataset source
| __all__ = ['VoxCeleb1'] | ||
|
|
||
|
|
||
| class VoxCeleb1(Dataset): |
| return x + residual | ||
|
|
||
|
|
||
| class ECAPA_TDNN(nn.Layer): |
Member
There was a problem hiding this comment.
Move this model implementation to examples if without pretrained weight.
|
|
This file contains hidden or 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
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.
PR types
New feature
PR changes
dataset, model, example
Describe