GithubHelp home page GithubHelp logo

zerospeech2020's Introduction

ZeroSpeech 2020

Implementation of our submission to ZeroSpeech 2020 (Hou et al.)

Results: https://zerospeech.com/2020/results.html

The system is composed of a hierarchical VQ-VAE encoder to discover discrete spoken word units from speech and a MelGAN vocoder to directly generate speech. They are trained separately. During VQ-VAE training, we add the speaker id before the VQ-VAE decoder to help reduce the speaker information encoded in the word units.

Usage:

  1. Run scripts/data_manifest.sh (modify datadir to the root dir of raw dataset)
  2. python trainer.py --mode vqvae --language [english/surprise] --ckpt_path [path-to-save-model] --datadir [path-to-the-root-dir-of-dataset]
  3. python trainer.py --mode melgan --load_vqvae True --pretrained_vqvae [path-to-vqvae-ckpts] --language [english/surprise] --ckpt_path [path-to-save-model] --datadir [path-to-the-root-dir-of-dataset]
  4. python evaluator.py --language [english/surprise] --datadir [path-to-the-root-dir-of-dataset] --vqvae_model [path-to-vqvae-ckpts] --melgan_model [path-to-melgan-ckpts] --save_path [path-to-save-generated-results]

Referred Repositories:

  1. vq-vae-2-pytorch: https://github.com/rosinality/vq-vae-2-pytorch
  2. melgan-neurips: https://github.com/descriptinc/melgan-neurips
  3. ZeroSpeech-TTS-without-T: https://github.com/andi611/ZeroSpeech-TTS-without-T
  4. VQ-VAE-Speech: https://github.com/swasun/VQ-VAE-Speech
  5. pytorch-vqvae: https://github.com/houwenxin/pytorch-vqvae

zerospeech2020's People

Contributors

houwenxin avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar

zerospeech2020's Issues

train melgan

Thanks for sharing your code. I have a question when running your code.
When training the melgan which is used to synthesis speech, there is a parameter --load_vqvae [path-to-vqvae-ckpts], how should I set it? I try to give the path to pretained model and also try 'True', but both are wrong.
trainer.py: error: unrecognized arguments: ./model1/model-vqvae-5-148-744-True.pt
trainer.py: error: unrecognized arguments: True

ABX

Hi.
I'm trying to change the model based on your code. But when I run the ZS20 evaluate code to get the ABX score, I found that after hundreds of epochs training for the melgan, the ABX stays the same. Do you have this problem in your work?

melgan

Hi, I have a problem when I train the melgan, the best model will always be the first epoch's model. Then I check the log and find it seems can't convergence.
微信图片_20200824091255
Lr of melgan is 2e-4 which is the same as your hps, how to solve this problem?

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.