/vocal-remover

Vocal Remover using Deep Neural Networks

Primary LanguagePythonMIT LicenseMIT

vocal-remover

Release Release

This is a deep-learning-based tool to extract instrumental track from mixture audio.

Installation

Install required packages

pip install -r requirements.txt

Getting vocal-remover

Download the latest version from here.

Usage

The following code splits the mixture audio into an instrumental track and a vocal track. These tracks are saved as *_Instrumental.wav and *_Vocal.wav.

Run on CPU

python inference.py --input path/to/mixture/audio

Run on GPU

python inference.py --input path/to/mixture/audio --gpu 0

Train your own model

Install SoundStretch

sudo apt install soundstretch

Place your dataset

dataset/
  +- instrumentals/
  |    +- 01_foo_inst.wav
  |    +- 02_bar_inst.mp3
  |    +- ...
  +- mixtures/
       +- 01_foo_mix.wav
       +- 02_bar_mix.mp3
       +- ...

Offline data augmentation

python augment.py -i dataset/instrumentals -m dataset/mixtures -p -1
python augment.py -i dataset/instrumentals -m dataset/mixtures -p 1

Train a model

python train.py -i dataset/instrumentals -m dataset/mixtures -M 0.5 -g 0

References