Giter Club home page Giter Club logo

zerospeech2019's Introduction

VQVAE with Speaker Adversarial Training

Zerospeech 2019 Submission
Suhee Cho @Suhee05, Yeonjung Hong @YeonjungHong, Yookyung Shin @abi22yk, Youngsun Cho @yscatwork

  • Alphabetical order

How to run

1. Pretrained Model

The model used for submission and its checkpoints were uploaded on Google Drive. Since the codes in this repository have critical issues, please refer to the link below. A model with speaker adversarial training and multi-gpu option will be uploaded on this repository as soon as our work on multi-gpu option finish.

https://drive.google.com/drive/folders/1OQp4hug0PAZeGWlD155fIx34N5D6QTYw?usp=sharing

1.1 Installation

All packages and environments are already prepared in the Google Colab notebook above.

1.2 Run

Data preprocessing is already done for the colab version, so the respective code has been commented out. Simply run the active cells step by step.

2. On your own system

2.1. Installation

#for stable installation, install these two packages as below
conda install -c conda-forge librosa
pip install -U dm-sonnet==1.23

# pip install r- requirements.txt
graphs==0.1.3
Keras==2.2.4
sonnet==0.1.6
tensorflow-gpu==1.12.0
tensorflow-probability==0.5.0
tensorflow-probability-gpu==0.4.0

2.2. Revision to be made for the Sonnet source code

https://github.com/deepmind/sonnet/blob/master/sonnet/python/modules/nets/vqvae.py

Please navigate to your /sonnet/python/modules/nets/vqvae.py installation location and make the following edits.

line number source revised
98 quantized = self.quantize(encoding_indices) quantized, w = self.quantize(encoding_indices)
quantized_frozen = quantized
111 return {'quantize': quantized, 'loss': loss, 'perplexity': perplexity, 'encodings': encodings, 'encoding_indices': encoding_indices,} return {'quantize': quantized, 'quantize_frozen':quantized_frozen, 'loss': loss, 'perplexity': perplexity, 'encodings': encodings, 'encoding_indices': encoding_indices, 'wmatrix':w,}
121 return tf.nn.embedding_lookup(w, encoding_indices, validate_indices=False) return tf.nn.embedding_lookup(w, encoding_indices, validate_indices=False), w

####2.3. Run

python preprocess.py --mode train
python train.py
python preprocess.py --mode synth
python synthesize.py

Reference

  • [1] Chorowski, J., Weiss, R. J., Bengio, S., & Oord, A. V. D. (2019). Unsupervised speech representation learning using WaveNet autoencoders. arXiv preprint arXiv:1901.08810.
  • [2] Chou, Ju-chieh, Cheng-chieh Yeh, Hung-yi Lee, and Lin-shan Lee. “Multi-target Voice Conversion without Parallel Data by Adversarially Learning Disentangled Audio Representations.” arXiv preprint arXiv:1804.02812 (2018).
  • [3] van den Oord, A., Dieleman, S., Zen, H., Simonyan, K., Vinyals, O., Graves, A., Kalchbrenner, N. Senior, A.W., Kavukcuoglu, K. (2016). WaveNet: A generative model for raw audio. In SSW, p. 125.
  • [4] van den Oord, A., & Vinyals, O. (2017). Neural discrete representation learning. In Advances in Neural Information Processing Systems (pp. 6306-6315).
  • [5] https://github.com/Rayhane-mamah/Tacotron-2
  • [6] https://github.com/deepmind/sonnet/blob/master/sonnet
  • [7] https://github.com/jjery2243542/voice_conversion

zerospeech2019's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

zerospeech2019's Issues

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.