Skip to content

Instantly share code, notes, and snippets.

@awave1
Last active July 13, 2020 22:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awave1/cb14523f293136fecd29f5af4e4f211a to your computer and use it in GitHub Desktop.
Save awave1/cb14523f293136fecd29f5af4e4f211a to your computer and use it in GitHub Desktop.
FROM continuumio/miniconda3
RUN git clone https://github.com/facebookresearch/demucs.git /app
WORKDIR /app
RUN conda env update -f environment-cpu.yml
RUN conda init bash
RUN echo "conda activate demucs" > ~/.bashrc
ENTRYPOINT ["conda", "run", "-n", "demucs", "python", "-m", "demucs.separate"]
mkdir -p ./models ./out && docker run -v "$PWD/models:/models" -v ~/Downloads/Blackstar\ -\ Thieves\ in\ the\ Night.wav:/data/song.wav -v "$PWD/out:/out" -it demucs --dl -v /data/song.wav --models /models -d cpu -o /out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment