Giter VIP home page Giter VIP logo

docker-adefossez-demucs's Introduction

Docker adefossez Demucs

This repository dockerizes adefossez Demucs to split music tracks into different tracks (bass, drums, voice, others).

Usage

Clone this repository

git clone https://github.com/stevemisel/docker-adefossez-demucs.git demucs

Split a music track

  1. Copy the track you want to split into the input folder (e.g., input/mysong.mp3).
  2. Execute demucs via the run job in the Makefile, specifying the track argument with only the name of the file:
make run track=mysong.mp3

This process will take some time the first time it is run, as the execution will:

  • Download the Docker image that is setup to run the adefossez demucs script.
  • Download the pretrained models.
  • Execute demucs to split the track.

Subsequent runs will not need to download the Docker image or download the models, unless the model specified has not yet been used.

Options

The following options are available when splitting music tracks with the run job:

Option Default Value Description
gpu false Enable Nvidia CUDA support (requires an Nvidia GPU).
model demucs The model used for audio separation. See https://github.com/adefossez/demucs#separating-tracks for a list of available models to use.
mp3output false Output separated audio in mp3 format instead of the default wav format.
splittrack Individual track to split/separate from the others (e.g., you only want to separate drums). Valid options are bass, drums, vocals and other. Other values may be allowed if the model can separate additional track types.

Example commands:

# Use the "fine tuned" demucs model
make run track=mysong.mp3 model=htdemucs_ft

# Enable Nvidia CUDA support and output separated audio in mp3 format
make run track=mysong.mp3 gpu=true mp3output=true

Run Interactively

To experiment with other demucs options on the command line, you can also run the Docker image interactively via the run-interactive job. Note that only the gpu option is applicable for this job.

Example:

make run-interactive gpu=true

Building the Image

The Docker image can be built locally via the build job:

make build

License

This repository is released under the MIT license as found in the LICENSE file.

docker-adefossez-demucs's People

Contributors

chucknelson avatar xserrat avatar stevemisel avatar adefossez avatar loretoparisi avatar

Stargazers

 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.