Giter VIP home page Giter VIP logo

deepspeechdistances's Introduction

Authors' Implementation of DeepSpeech Distances proposed in High Fidelity Speech Synthesis with Adversarial Networks

This repo provides a code for estimation of DeepSpeech Distances, new evaluation metrics for neural speech synthesis.

Details

The computation involves estimating Fréchet and Kernel distances between high-level features of the reference and the examined samples extracted from hidden representation of NVIDIA's DeepSpeech2 speech recognition model.

We propose four distances:

  • Fréchet DeepSpeech Distance (FDSD, based on FID, see [2])
  • Kernel DeepSpeech Distance (KDSD, based on KID, see [3])
  • conditional Fréchet DeepSpeech Distance (cFDSD),
  • conditional Kernel DeepSpeech Distance (cKDSD).

The conditional distances compare samples with the same conditioning (e.g. text) and asses conditional quality of the audio. The uncoditional ones compare random samples from two distributions and asses general quality of audio. For more details, see [1].

Usage

To use the demo, open the provided notebook in colab.

Alternatively, open a new colab notebook, mount a drive and clone this repository:

from google.colab import drive
drive.mount('/content/drive', force_remount=True)
!git clone https://github.com/mbinkowski/DeepSpeechDistances `/content/drive/My Drive/DeepSpeechDistances`

After that, go to /content/drive/My Drive/DeepSpeechDistances, open a demo notebook deep_speech_distances.ipynb, and follow the instructions therein.

Notes

We provide a tensorflow meta graph file for DeepSpeech2 based on the original one available with the checkpoint. The provided file differs from the original only in the lack of map-reduce ops defined by horovod library; therefore the resulting model is equivalent to the original.

This is an 'alpha' version of the API; although fully functional it will be heavily updated and simplified soon.

References

[1] Mikołaj Bińkowski, Jeff Donahue, Sander Dieleman, Aidan Clark, Erich Elsen, Norman Casagrande, Luis C. Cobo, Karen Simonyan, High Fidelity Speech Synthesis with Adversarial Networks, ICLR 2020.

[2] Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, Sepp Hochreiter, GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash Equilibrium, NeurIPS 2017.

[3] Mikołaj Bińkowski, Dougal J. Sutherland, Michael Arbel, Arthur Gretton, Demystifying MMD GANs, ICLR 2018.

deepspeechdistances's People

Contributors

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