Git Product home page Git Product logo

pytorch_speaker_verification's Introduction

PyTorch_Speaker_Verification

PyTorch Implementation of the model described in UTTERANCE-LEVEL AGGREGATION FOR SPEAKER RECOGNITION IN THE WILD: https://arxiv.org/pdf/1902.10107.pdf

Dependencies

Create the conda environment:

conda env create -f environment.yml 
conda activate SV_pytorch

Preprocessing

Download the Vox Celeb dataset from here: http://www.robots.ox.ac.uk/~vgg/data/voxceleb/vox1.html

Once you download the dataset specify the proper path instead of PATHTODATASET in config/config.yml:

train_path: './PATHTODATASET/Audio/dev/processed'
train_path_unprocessed: '/PATHTODATASET/Audio/dev/wav' #*/wav/speaker_id/session_id/file.wav
test_meta_path: './dataVoxCeleb1/Metadata/veri_test.txt'
test_path: '/PATHTODATASET/Audio/test/processed'
test_path_unprocessed: '/PATHTODATASET/Audio/test/wav'

To convert the wav files to spectograms run the following utility function:

python data_preprocess.py

Two folders will be created, dev/processed and test/processed, containing .npy files containing numpy ndarrays of speaker utterances and test pair utterances, respectively.

Training

To train the speaker verification model, run:

python train_speech_embedder.py 

with the following config.yaml key set to true:

training: !!bool "true"

for testing, set the key value to:

training: !!bool "false"

The log file and checkpoint save locations are controlled by the following values:

log_file: './speech_id_checkpoint/Stats'
checkpoint_dir: './speech_id_checkpoint'

pytorch_speaker_verification's People

Contributors

khassanoff avatar mussakhojayeva avatar

Watchers

Quantum Cat  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.