Giter Club home page Giter Club logo

speakerverification_dh1u's Introduction

Voice Verification

This repository contains the framework for training speaker verification model described in [2]
with score normalization post-processing described in [3].

Dependencies

pip install -r requirements.txt

Data Preparation

  1. Generate train, validate list (if ratio == -1, take 3 files for each speaker for validate)
python src/dataprep.py --generate --split_ratio -1 --config yaml/configuration.yaml

In addition to the Python dependencies, wget and ffmpeg must be installed on the system.

Training

Set cuda usage

export CUDA_VISIBLE_DEVICES=5

then add the device="cuda:5" to args
Single GPU

CUDA_VISIBLE_DEVICES=0 python main.py --do_train --config yaml/configuration.yaml

Data parallel

CUDA_VISIBLE_DEVICES=0,1,2 python main.py --do_train --config yaml/configuration.yaml --data_parallel

Distributed

CUDA_VISIBLE_DEVICES=0,1,2 python main.py --do_train --config yaml/configuration.yaml --distributed --mixedprec --distributed_backend nccl --port 10001

Note: the best model is automatically saved during the training process, if the initial_model is not provided, automatically load from the best_state weight if possible. add --augment to train with augment data

Inference

  1. prepare cohorts
CUDA_VISIBLE_DEVICES=0 python main.py --do_infer --prepare --config yaml/configuration.yaml
  1. Evaluate and tune thresholds
CUDA_VISIBLE_DEVICES=0 python main.py --do_infer --eval --config yaml/configuration.yaml
  1. Run on Test set
CUDA_VISIBLE_DEVICES=0 python main.py --do_infer --test --config yaml/configuration.yaml

Citation

[1] In defence of metric learning for speaker recognition

@inproceedings{chung2020in,
    title={In defence of metric learning for speaker recognition},
    author={Chung, Joon Son and Huh, Jaesung and Mun, Seongkyu and Lee, Minjae and Heo, Hee Soo and Choe, Soyeon and Ham, Chiheon and Jung, Sunghwan and Lee, Bong-Jin and Han, Icksang},
    booktitle={Interspeech},
    year={2020}
}

[2] Clova baseline system for the VoxCeleb Speaker Recognition Challenge 2020

@article{heo2020clova,
    title={Clova baseline system for the {VoxCeleb} Speaker Recognition Challenge 2020},
    author={Heo, Hee Soo and Lee, Bong-Jin and Huh, Jaesung and Chung, Joon Son},
    journal={arXiv preprint arXiv:2009.14153},
    year={2020}
}

speakerverification_dh1u's People

Contributors

hiimmuc avatar trellixvulnteam 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.