-
Notifications
You must be signed in to change notification settings - Fork 2.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
[WIP]Add speaker recognition example #5327
base: dev-static
Are you sure you want to change the base?
Conversation
@KPatr1ck any update? |
数据集,模型,loss,训练和预测脚本已齐。 |
for fc in self.blocks: | ||
x = fc(x) | ||
|
||
# KP: W和x的向量归一化,输出为余弦相似度,供Additive Angular Margin计算loss |
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.
使用标准的注释
# NOTE(xxxxxgithuid or username): blabla
return 10**(SNR / 20) | ||
|
||
|
||
def convolve1d( |
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.
convolved1d和conv1d的区别是什么?
return (hlpf + hhpf).reshape([1, -1, 1]) | ||
|
||
|
||
def reverberate(waveforms, |
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.
参考SpeechBrain看这些基础function是否有注释
|
||
id2embedding_norm.update(dict(zip(ids, embeddings))) | ||
|
||
# Score normalization based on trainning samples. |
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.
trainning -> training
__all__ = ['OpenRIRNoise'] | ||
|
||
|
||
class OpenRIRNoise(Dataset): |
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.
Need more comments for dataset source
__all__ = ['VoxCeleb1'] | ||
|
||
|
||
class VoxCeleb1(Dataset): |
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.
More dataset source comments.
return x + residual | ||
|
||
|
||
class ECAPA_TDNN(nn.Layer): |
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.
Move this model implementation to examples if without pretrained weight.
|
PR types
New feature
PR changes
dataset, model, example
Describe