Coder Social home page Coder Social logo

Vox1_E and Vox1_H about ecapa-tdnn HOT 6 CLOSED

taoruijie avatar taoruijie commented on August 19, 2024
Vox1_E and Vox1_H

from ecapa-tdnn.

Comments (6)

TaoRuijie avatar TaoRuijie commented on August 19, 2024 3

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.

TaoRuijie avatar TaoRuijie commented on August 19, 2024

抱歉这个没有测试过...一般来说是10%左右的差距

from ecapa-tdnn.

JJun-Guo avatar JJun-Guo commented on August 19, 2024

抱歉这个没有测试过...一般来说是10%左右的差距

请问大佬可以开源AS-norm的相关代码吗?

from ecapa-tdnn.

TaoRuijie avatar TaoRuijie commented on August 19, 2024

请check这里#26 (comment)

from ecapa-tdnn.

JJun-Guo avatar JJun-Guo commented on August 19, 2024

我看源代码中每一个样本是有两个embedding的,维度分别为(1,192)和(5,192),as_norm中只有一个,请问代表的是哪一个呢?是否考虑在as_norm中每个样本也加入两个embedding做规整然后求均值呢?

from ecapa-tdnn.

JJun-Guo avatar JJun-Guo commented on August 19, 2024

请问这里的N是用的训练全集吗?另外topk是多少呢?N我用10000,topk用300或者3000,EER都达到了40%多.......

from ecapa-tdnn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.