Git Product home page Git Product logo

begansing's Introduction

Korean Singing Voice Synthesis based on Auto-regressive Boundary Equilibrium GAN

Our research project develops a Korean singing voice synthesis system using deep neural network. The system generates singing voice from a given text and MIDI in an end-to-end manner.

This repository contains PyTorch implementation for Korean Singing Voice Synthesis based on Auto-regressive Boundary Equilibrium GAN.

model architecture final 2 3

Overview of the proposed system

Pre-requisites

  • Install PyTorch based on official website, https://pytorch.org/.
  • Then install packages in requirements.txt.
pip install -r requirements.txt
Tested Environments
Python CUDA PyTorch Torchaudio
3.6 ~ 3.8 10.2 1.5 0.5
3.7 10.1 1.5 0.5

Dataset

In the paper we used our own dataset and we plan to release the dataset. But if you want to use your own dataset, the dataset needs to meet few conditions as below or follow the the structure of 'sample_dataset'.

  • Each song must have text(.txt), MIDI(.mid) and audio(.wav) and MIDI should be temporally aligned with audio.
  • Text files assume to have the same number of syllables as MIDI notes. The text is aligned using MIDI note duration.
  • Currently the system only supports Korean.

Configuration

Check configuration files in 'config' folder.

  • default_train.yml: Default configuration file for preprocess.py and train.py
  • default_infer.yml: Default configuration file for infer.py

Change configurations before you run following steps and important parameters are as below.

  • file_structure: File structure of dataset, 1: all the files in one folder, 2: .txt, .mid, .wav are in separated folders
  • dataset_path: Path for dataset
  • num_proc: The number of processes especially for preprocess.py
  • use_cpu: Forcing code to use cpu and ignore 'device' parameter
  • device: List of CUDA device indices (e.g. device: [0, 1] will use cuda:0 and cuda:1)
  • batch_size: Training batch size
  • data_mode: Dataloader mode, single: loading entire data on memory, multi: loading data with queue

Preprocessing

python preprocess.py -c config/default_train.yml --use_cpu True

You can speed up preprocessing by increasing the number of processes or 'num_proc'. You can use preprocess.py with GPU but 'num_proc' should be 1.

Training

python train.py -c config/default_train.yml --device 0 --batch_size 32

If your system doesn't have enough memory, you can change 'data_mode' to 'multi' which loads data with queue. Also type following command for tensorboard monitoring.

tensorboard --logdir=checkpoint/default

Inference

python infer.py -c config/default_train.yml config/default_infer.yml --device 0

Specify text file and checkpoint file in the configuration and MIDI file is assumed to have same file name as text file. Together with train configuration, infer configuration is given then the configurations are merged. You can also use pre-trained model from https://drive.google.com/file/d/1JqCD-kxba2meSlApWr06b2nzqLv3U-j_/view?usp=sharing.

Results

Audio samples at: https://soonbeomchoi.github.io/saebyulgan-blog/. Model was trained at RTX2080 Ti with batch size 32 for 2 days. BEGANSing tensorboard

License

To Do

  • To publish pre-trained model on torchhub.
  • To offer English based text interface for non-Korean speakers.
  • To remove scipy dependency in utils/dsp.py. Scipy is used only for scipy.signal.lfilter because torchaudio.functional.lfilter is slow.
  • To open the dataset used in the paper.

begansing's People

Contributors

soonbeomchoi avatar

Watchers

James Cloos 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.