Comments (6)
def as_norm(score, embedding_1, embedding_2, cohort_feats, topk):
score_1 = torch.matmul(cohort_feats, embedding_1.T)[:,0]
score_1 = torch.topk(score_1, topk, dim = 0)[0]
mean_1 = torch.mean(score_1, dim = 0)
std_1 = torch.std(score_1, dim = 0)
score_2 = torch.matmul(cohort_feats, embedding_2.T)[:,0]
score_2 = torch.topk(score_2, topk, dim = 0)[0]
mean_2 = torch.mean(score_2, dim = 0)
std_2 = torch.std(score_2, dim = 0)
score = 0.5 * (score - mean_1) / std_1 + 0.5 * (score - mean_2) / std_2
cohort_feats is the extracted embedding of the training set, with the shape (N, 192), N is the number of training data
from ecapa-tdnn.
抱歉这个没有测试过...一般来说是10%左右的差距
from ecapa-tdnn.
抱歉这个没有测试过...一般来说是10%左右的差距
请问大佬可以开源AS-norm的相关代码吗?
from ecapa-tdnn.
请check这里#26 (comment)
from ecapa-tdnn.
我看源代码中每一个样本是有两个embedding的,维度分别为(1,192)和(5,192),as_norm中只有一个,请问代表的是哪一个呢?是否考虑在as_norm中每个样本也加入两个embedding做规整然后求均值呢?
from ecapa-tdnn.
请问这里的N是用的训练全集吗?另外topk是多少呢?N我用10000,topk用300或者3000,EER都达到了40%多.......
from ecapa-tdnn.
Related Issues (20)
- 关于数据集prepare部分的问题 HOT 1
- 关于代码中data08/下的数据 HOT 1
- dataLoader HOT 9
- data08文件夹 HOT 5
- 关于musan数据集的问题 HOT 4
- model. files HOT 6
- 利用率
- questions about res2net in model.py HOT 2
- 关于正确率 HOT 2
- 想请教关于batchsize对结果的影响 HOT 11
- 关于训练gpu占用率低 HOT 2
- test
- how to finetune a pretrained model with new speakers HOT 1
- 关于vox2数据集大小 HOT 5
- test performance HOT 2
- How the eval_network works ?
- When you trained the model on voxceleb, did you balanced the number of files per speaker ? HOT 1
- Best EER and the channels used HOT 2
- MinDCF result HOT 2
- Question about pre-trained
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ecapa-tdnn.