Git Product home page Git Product logo

nv's Introduction

Mel2Speech Project

Report

The introduction, pipeline details, experiments, and results are presented in the wandb report.

Installation guide

To get started install the requirements

pip install -r ./requirements.txt

Then download train data (LJSpeech dataset)

sudo apt install axel
bash loader.sh

Model training

This project implements HiFiGAN model for speech synthesis.

To train model from scratch run

python3 train.py -c nv/configs/train.json

For fine-tuning pretrained model from checkpoint, --resume parameter is applied. For example, continuing training model with train.json config organized as follows

python3 train.py -c nv/configs/train.json -r saved/models/final/<run_id>/<any_checkpoint>.pth

Inference stage

Checkpoint should be located in default_test_model directory. Pretrained model can be downloaded by running python code

import gdown
gdown.download("https://drive.google.com/uc?id=1I5qPDu6Bsc_xm6u6U35e867RRNeqi0v3", "default_test_model/checkpoint.pth")

Model evaluation is executed by command

python3 test.py \
   -i default_test_model/test \
   -r default_test_model/checkpoint.pth \
   -o output \
   -l False
  • -i (--input-dir) provide the path to directory with input .wav files. Additionally, one text.txt file can be located there. In this case it will be read by rows (one row for each audio).
  • -r (--resume) provide the path to model checkpoint. Note that config file is expected to be in the same dir with name config.json.
  • -o (--output) specify output directory path, where .wav files will be saved.
  • -l (--log-wandb) determine log results to wandb project or not. If True, authorization in command line is needed. Name of project can be changed in the config file. Lines from text.txt file are also logged, if it is provided.

Running with default parameters

python3 test.py

Credits

The code of model is based on an asr-template project.

nv's People

Contributors

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