Giter Site home page Giter Site logo

vocoder's Introduction

HiFiGAN

Project on GAN-based model capable of generating high fidelity speech. This rep contains my implementation of HiFiGAN model and all the steps to reimplement the pipeline

How to install?

Make sure to follow this guide

git clone https://github.com/aizamaksutova/Vocoder.git
cd Vocoder
pip install -r requirements.txt

How to inference?

First, you should create a file (e.g. samples.wav) with all the phrases you want to reproduce.

Then perform these:

python3 test.py -c config.json -r checkpoint.pth -t inference_data -o output --device='cuda'

-t inference_data is a directory where your samples are stored and output is a directory where the output results will be stored. Additionaly, if you want to change the mel-spec config, then go to Vocoder/melspec

For inferencing my model exactly you should do these steps:

python3 data.py
python3 test.py -c config.json -r model_best.pth -t inference_data -o output --device='cuda'

You can look at the results in the output dir

How to train the model by yourself?

In order to train the model you would need to perform simple steps, but wait for a long time for them to actually download all the data which is a LjDataset

chmod a+x prepare_data.sh
./prepare_data.sh
python3 train.py -c config.json -k wandb_key

All the other parameters are manually stored in the config.json, but you can look up the config options in train.py in order to change everything right from terminal.

Wandb report

Here is the link to my wandb report with all the architecture explanation and wavs + graphs

vocoder's People

Contributors

aizamaksutova 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.