Git Product home page Git Product logo

brak's Introduction

Brak

An in-progress audio library for training speaker encoders. Proof of concept in Pytorch, Jax support soon.

Modules

At the moment, Brak only includes a speaker encoder for producing embeddings. The PyTorch implementation is a fork of Resemblyzer and Real Time Voice Cloning. Both are PyTorch implementations of GE2E Loss, Generalized End-To-End Loss For Speaker Verification (1710.10467) and Transfer Learning from Speaker Verification to Multispeaker Text-To-Speech Synthesis respectively.

Pretrained Models:

Model achieves SOTA on the VoxCeleb1 test set at ~1.2% Equal Error Rate (EER) under 20k steps. The current model has only been trained on the VoxCeleb1 training set on a single V100 GPU. Model converges at 0.2040 Cross-Entropy Loss and 0.7% EER.

Speaker Encoder

Embeddings from speaker encoders are a critical component for conditioning decoder synthesizers and output vocoders for speech-to-speech learning.

Brak differs from current implementations of speaker encoders which use 3-layer vanilla LSTMs with GE2E loss by swapping out the LSTMs for Li-GRUs (1803.10225). Additionally, Brak departs from Li-GRUs by using Mish (1908.08681) instead of ReLU and Ranger--an optimizer combining RAdam (1908.03265), LookAhead (1907.08610), and Gradient Centralization (2004.01461)--instead of Adam.

Model

Li-GRUs were first introduced in Light Gated Recurrent Units for Speaker Recognition (1803.10225). The core ideas behind Li-GRUs are that removing the reset gate from GRUs would be helpful as the past state is usually always relevant in the context of speech and coupled ReLU and BatchNorm instead of tanh. PyTorch-Kaldi found Li-GRU to be the best performing model on TIMIT, using a bidirectional 5-layer stack of Li-GRUs with hidden_dim of 550 and dropout of 0.2 between layers.

Brak extends this idea to speaker encoding, but replaces the ReLU with Mish. Brak uses a 3-layer stack of Li-GRU's with hidden_dim of 256 and dropout of 0.2 between layers. The initial curiosity for the use of Mish arose from its and its predecessor's (Swish (1710.05941)) similarity to an inverted low pass filter with resonance.

Swish

Low Pass Filter

Mish

Low Pass Filter

Install

!git clone https://github.com/many-hats/brak.git
!cd brak 
!git clone https://github.com/many-hats/rtvc

brak's People

Contributors

many-hats avatar

Watchers

James Cloos avatar  avatar paper2code - bot 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.