2019-10-28 14:12:13 +01:00
< img src = "https://github.com/deezer/spleeter/raw/master/images/spleeter_logo.png" height = "80" / >
2019-09-26 17:44:18 +02:00
2019-11-05 14:05:09 +01:00
[](https://badge.fury.io/py/spleeter)   [](https://colab.research.google.com/github/deezer/spleeter/blob/master/spleeter.ipynb]
2019-09-26 17:44:18 +02:00
2019-10-28 14:12:13 +01:00
## About
2019-09-26 17:44:18 +02:00
2019-10-28 14:12:13 +01:00
**Spleeter** is the [Deezer ](https://www.deezer.com/ ) source separation library with pretrained models
2019-11-02 20:05:00 +01:00
written in [Python ](https://www.python.org/ ) and uses [Tensorflow ](https://tensorflow.org/ ). It makes it easy
2019-10-28 14:12:13 +01:00
to train source separation model (assuming you have a dataset of isolated sources), and provides
already trained state of the art model for performing various flavour of separation :
* Vocals (singing voice) / accompaniment separation ([2 stems ](https://github.com/deezer/spleeter/wiki/2.-Getting-started#using-2stems-model ))
* Vocals / drums / bass / other separation ([4 stems ](https://github.com/deezer/spleeter/wiki/2.-Getting-started#using-4stems-model ))
* Vocals / drums / bass / piano / other separation ([5 stems ](https://github.com/deezer/spleeter/wiki/2.-Getting-started#using-5stems-model ))
2019-10-28 14:27:20 +01:00
2 stems and 4 stems models have state of the art performances on the [musdb ](https://sigsep.github.io/datasets/musdb.html ) dataset. **Spleeter** is also very fast as it can perform separation of audio files to 4 stems 100x faster than real-time when run on a GPU.
We designed **Spleeter** so you can use it straight from [command line ](https://github.com/deezer/spleeter/wiki/2.-Getting-started#usage )
as well as directly in your own development pipeline as a [Python library ](https://github.com/deezer/spleeter/wiki/4.-API-Reference#separator ). It can be installed with [Conda ](https://github.com/deezer/spleeter/wiki/1.-Installation#using-conda ),
2019-10-28 14:12:13 +01:00
with [pip ](https://github.com/deezer/spleeter/wiki/1.-Installation#using-pip ) or be used with
[Docker ](https://github.com/deezer/spleeter/wiki/2.-Getting-started#using-docker-image ).
## Quick start
Want to try it out ? Just clone the repository and install a
[Conda ](https://github.com/deezer/spleeter/wiki/1.-Installation#using-conda )
environment to start separating audio file as follows:
```bash
2019-10-28 16:19:18 +01:00
git clone https://github.com/Deezer/spleeter
conda env create -f spleeter/conda/spleeter-cpu.yaml
conda activate spleeter-cpu
spleeter separate -i spleeter/audio_example.mp3 -p spleeter:2stems -o output
2019-10-28 14:12:13 +01:00
```
You should get two separated audio files (`vocals.wav` and `accompaniment.wav` )
in the `output/audio_example` folder.
For a more detailed documentation, please check the [repository wiki ](https://github.com/deezer/spleeter/wiki )
## Reference
2019-11-04 15:09:34 +01:00
2019-11-04 22:36:11 +01:00
- [Deezer Research - Source Separation Engine Story - deezer.io blog post ](https://deezer.io/releasing-spleeter-deezer-r-d-source-separation-engine-2b88985e797e )
- [Music Source Separation tool with pre-trained models / ISMIR2019 extended abstract ](http://archives.ismir.net/ismir2019/latebreaking/000036.pdf )
2019-11-04 15:09:34 +01:00
2019-10-28 14:12:13 +01:00
If you use **Spleeter** in your work, please cite:
2019-10-28 16:20:27 +01:00
```BibTeX
2019-10-28 14:12:13 +01:00
@misc {spleeter2019,
title={Spleeter: A Fast And State-of-the Art Music Source Separation Tool With Pre-trained Models},
author={Romain Hennequin and Anis Khlif and Felix Voituret and Manuel Moussallam},
howpublished={Late-Breaking/Demo ISMIR 2019},
month={November},
2019-11-04 11:15:57 +01:00
note={Deezer Research},
2019-10-28 14:12:13 +01:00
year={2019}
}
```
## License
The code of **Spleeter** is MIT-licensed.
2019-11-04 10:32:29 +01:00
## Disclaimer
If you plan to use Spleeter on copyrighted material, make sure you get proper authorization from right owners beforehand.
2019-10-28 14:12:13 +01:00
## Note
This repository include a demo audio file `audio_example.mp3` which is an excerpt
from Slow Motion Dream by Steven M Bryant (c) copyright 2011 Licensed under a Creative
Commons Attribution (3.0) license. http://dig.ccmixter.org/files/stevieb357/34740
Ft: CSoul,Alex Beroza & Robert Siekawitch