Giter Club home page Giter Club logo

wavenet_implementation's Introduction

WaveNet Implementation

This is a TensorFlow implementation of the WaveNet model first introduced in WaveNet: A Generative Model for Raw Audio. The architecture for the model is based on appendix A of Deep Voice: Real-time Neural Text-to-Speech. The scripts within are tested on TensorFlow 2.13.0 and Python 3.9.6.

The weights for a demo model are saved at Saved_Models >> Demo_Model. This model was trained on ~60 minutes of Bach's Well-Tempered Klavier. A demo result for this model is located at Generated_Samples >> demo_sample.wav.

Training

To train the network,

  1. Place the training set into the Training_Data folder and the validation set in to the Validation_Data folder. Training & validation data should be .wav files sampled at 8kHz.

  2. In params.json, define the network parameters. The defaults are those used in the demo model.

  3. Navigate to train.py. Define the number of epochs, n_epochs. If this is the first run at training the network, set load_from_weights = False. The training script will save the weights for the most recent model at Saved_Models >> Last_Model. It will save the weights from the best model, i.e., with the lowest validation loss, at Saved_Models >> Best_Model. Training metrics are saved in the Metrics folder. Upon subsequent training runs, set load_from_weights = True. This will load last set of model weights, so training can be resumed where it was left off.

Audio Generation

To generate audio, navigate to the generate.py script. Choose the number of samples to generate num_generate. Choose which validation file, val_file, to use as a seed. Choose the start and end range for the seed, start and end.

wavenet_implementation's People

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.