Coder Social home page Coder Social logo

choihkk / ddsp-pytorch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sweetcocoa/ddsp-pytorch

0.0 0.0 0.0 38.66 MB

Implementation of DDSP (PyTorch), Differentiable Digital Signal Processing (ICLR 2020)

Home Page: https://sweetcocoa.github.io/ddsp-pytorch-samples/

License: MIT License

Shell 0.36% Python 99.64%

ddsp-pytorch's Introduction

Pytorch version of DDSP

DDSP : Differentiable Digital Signal Processing

Original Authors : Jesse Engel, Lamtharn (Hanoi) Hantrakul, Chenjie Gu, Adam Roberts (Google)

This Repository is NOT an official implement of authors.

Demo Page

How to train with your own data

  1. Clone this repository
git clone https://github.com/sweetcocoa/ddsp-pytorch
  1. Prepare your own audio data. (wav, mp3, flac.. )
  2. Use ffmpeg to convert that audio's sampling rate to 16k
# example
ffmpeg -y -loglevel fatal -i $input_file -ac 1 -ar 16000 $output_file
  1. Use CREPE to precalculate the fundamental frequency of the audio.
# example
crepe directory-to-audio/ --output directory-to-audio/f0_0.004/  --viterbi --step-size 4
  1. MAKE config file. (See configuration config/violin.yaml to make appropriate config file.) And edit train/train.py
config = setup(default_config="../configs/your_config.yaml")
  1. Run train/train.py
cd train
python train.py

How to test your own model

cd train
python test.py\ 
--input input.wav\
--output output.wav\
--ckpt trained_weight.pth\
--config config/your-config.yaml\
--wave_length 16000

Download pretrained weight file

download

Contact

Equally contributed.

ddsp-pytorch's People

Contributors

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