Coder Social home page Coder Social logo

icassp2021's Introduction

icassp2021

This is a Pytorch implementation of Dual-Encoder VQVAE mentioned in our paper.

We introduce a dual learning space that learns a speaker codebook (global features) alongside the original phone codebook (local). The new framework generalizes well to unseen speakers and the learned representations achieve reasonable performance in downstream tasks such as phone recognition and speaker diarization.

Framework of Dual-Encoder VQVAE

We reconstructed the speech using both original VQVAE and dual-encoder VQVAE.

In brief, we have done:

  1. Extended the original VQ-VAE with a speaker encoder.
  2. Changed the global condition to learned VQVAE speaker code.
  3. Trained a model with multi-speaker English corpus.
  4. We provide pre-trained models from various system configurations.

Authors

Authors of the paper: Jennifer Williams, Yi Zhao, Erica Cooper, Junichi Yamagishi

For any question related to the paper or the scripts, please contact j.williams[email mark]ed.ac.uk.

Samples

Please find our samples here.

Requirements

Please install the environment in project.yml before using the scripts.

conda env create -f project.yml
conda activate project

Preprocessing

  1. we recommend that you first trim the leading/trailing silence from the audio
  2. normalize the db levels
  3. use the provided pre-processing script: preprocess_vqvae.py

Usage

Please see example commands in run.sh for training the vavae model.

Or you can use python train.py -m [model type]. The -m option can be used to tell the the script to train a different model.

[model type] can be:

  • 'sys2': train original VQVAE
  • 'sys3': train a self-supervised VQVAE with dual encoders
  • 'sys4': train a semi-supervised VQVAE with dual encoders
  • 'sys4a': train system 4a but use angular softmax
  • 'sys5': train a semi-supervised VQVAE with dual encoders, and gradient reversal
  • 'sys5a': train system 5a but use angular softmax

Please modify sampling rate and other parameters in config.py before training.

Pre-trained models

We offer monolingual VCTK pre-trained models for system 2 (sys2) and system 5 (sys5)

Multi-gpu parallel training

Please see example commands in run_slurm.sh for running on SLURM with multiple GPUs

Acknowledgement

The code is based on mkotha/WaveRNN

And is also based on nii-yamagishilab/Extended_VQVAE

This work was partially supported by the EPSRC Centre for DoctoralTraining in Data Science, funded by the UK Engineering and Physical Sci-ences Research Council (grant EP/L016427/1) and University of Edinburgh;and by a JST CREST Grant (JPMJCR18A6, VoicePersonae project), Japan.The numerical calculations were carried out on the TSUBAME 3.0 super-computer at the Tokyo Institute of Technology.

License

MIT License

  • Copyright (c) 2019, fatchord (https://github.com/fatchord)
  • Copyright (c) 2019, mkotha (https://github.com/mkotha)
  • Copyright (c) 2020, Yamagishi Laboratory, National Institute of Informatics.
  • Copyright (c) 2021, Jennifer Williams and Yamagishi Laboratory, National Institute of Informatics.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

icassp2021's People

Contributors

rhoposit avatar

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.