Git Product home page Git Product logo

audio-stylegan2's Introduction

StyleGAN2-ADA โ€” for Audio Textures

This forked repository has updates for modelling Audio Textures. Please see the original official README from NVIDIA here for details on licenses and citations.

Compatibility

Note: This version of StyleGAN2 is not compatible with PyTorch>1.8. We use PyTorch 1.7 for all experiments.

Setup

  • Clone this repo
  • Install dependencies by creating a new conda environment called audio-stylegan2 (Note: if you are using this repo in conjunction with audio-latent-composition, you do not need to recreate this. Both projects need the same environment setup)
conda env create -f environment.yml

Add the newly created environment to Jupyter Notebooks

python -m ipykernel install --user --name audio-stylegan2

Training

Kickstart training using the command below. See config.json for various parameter settings.

Note this is unsupervised training. TODO: Integrate conditional training from original repo.

python main.py --data_dir=<data location> --out_dir=training-runs/<checkpoint location>

Notebooks

Notebooks outline how to generate randomly from trained GAN. Further, we use Phase Gradient Heap Integration (PGHI) method to invert Spectrograms to audio. See this paper and this paper for details. StyleGAN architectures for audio learn spectrogram representations as images and thus need to be scaled from [0,255] to [-50,0].

Semantic Factorization

We use the SeFa algorithm from this paper to automatically find directions for controllability.

TODO: Add the notebook and streamlit interface

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.