Coder Social home page Coder Social logo

hsljctong / triplet-loss-train-for-speaker-recognition Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kezhende/triplet-loss-train-for-speaker-recognition

0.0 1.0 0.0 242 KB

It is a complete project of voiceprint recognition or speaker recognition.Before, I upload a very classic VGG based model for speaker recognition . The model simply use softmax-loss to train super-parameters. But during testing stage,we found the model is not very reliable。for example, the model can easily distinguish man-man group, and man-woman group, but difficultly in woman-woman. So, we try another method called triplet-group to retrain our model, of course, we use triplet-loss as the loss for back propagation. The I upload our core code, and training curve for the two training stage. Why, I refer to "two training stage"? That need you to understand the triplet-group method. And very very welcome to my mailbox: [email protected]

License: MIT License

Python 100.00%

triplet-loss-train-for-speaker-recognition's Introduction

triplet-loss-train-for-speaker-recognition

 Before, I upload a very classic VGG based model for speaker recognition . 

The model simply use softmax-loss to train super-parameters. But during testing stage,we found the model is not very reliable. For example, the model can easily distinguish man-man group, and man-woman group, but difficultly in woman-woman. So, we try another method called triplet-group to retrain our model. Of course, we use triplet-loss as the loss for back propagation. Then I upload our core code, and training curve for the two training stage. Why, I refer to "two training stage"? That need you to understand the triplet-group method. And very very welcome to my mailbox: [email protected].

 The first stage(See train.py), I use the classic VGG net to train our data set (just use 100 people , VOX). 

The net I upload before. You can find it. Of course, the net written by tensorflow. This stage, the model converged after 250 training cycles.

 The second stage(See triplst_train.py), upload the fist stage model as pre-training model for this stage. 

I just upload the 150th episode trained model as pre-training model,maybe else. The prediction acc of 150th episode model achieved 0.89.

 First training stage curve, first_stage_training.png
 Second training stage curve, second_stage_training.png

Test model request :curl "http://192.168.99.214:19001/recognize?filename=/data/register/188188.wav&ranges=188881|190001" cosin score are: [[0.9889], [0.3467]] results : 188881 We may enrollment more than 100 people for one time, but just three of them needed in that snene. So, the ranges param means the exact people we need. http://192.168.99.214:19001: is the voiceprint server IP. recognize: means the type of voiceprint filename: means the voice path

Note: Some call me that the files uploaded are not runable, so I upload the complete file compressed by rar. I try my best to upload the trained model.

triplet-loss-train-for-speaker-recognition's People

Watchers

 avatar

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.