diff --git a/README.md b/README.md index b8f995e..83da04c 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,6 @@ A collection of delicious docker recipes. - [x] alpine-arm :+1: - [x] apacheds - [x] aria2 :+1: -- [x] audiowaveform - [x] cadvisor - [x] casperjs :+1: - [x] freegeoip @@ -171,6 +170,11 @@ A collection of delicious docker recipes. - [x] youtube-dl - [x] youtube-worker :beetle: +## Audio + +- [x] audiowaveform +- [x] demucs + ## Web - [x] discuz :cn: diff --git a/demucs/Dockerfile b/demucs/Dockerfile new file mode 100644 index 0000000..7480069 --- /dev/null +++ b/demucs/Dockerfile @@ -0,0 +1,25 @@ +# +# Dockerfile for demucs +# + +FROM continuumio/anaconda3:2020.11 + +USER root + +WORKDIR /opt/demucs + +ENV PATH=/opt/conda/bin:$PATH + +RUN set -xe \ + && apk add --no-cache curl tar \ + && curl -sSL https://github.com/facebookresearch/demucs/archive/master.tar.gz | tar xz --strip 1 \ + && conda env update -f environment-cpu.yml + +VOLUME /opt/demucs/models \ + /opt/demucs/output \ + /opt/demucs/input + +ENTRYPOINT [ \ + "conda", "run", "--no-capture-output", "-n", "demucs", \ + "python3", "-m", "demucs.separate", "--dl", "-n", "demucs", "-d", "cpu", "--models", "models", "--out", "output" \ +] diff --git a/demucs/README.md b/demucs/README.md new file mode 100644 index 0000000..c072a92 --- /dev/null +++ b/demucs/README.md @@ -0,0 +1,18 @@ +demucs +====== + +[Demucs][1] is based on U-Net convolutional architecture inspired by Wave-U-Net +and SING, with GLUs, a BiLSTM between the encoder and decoder, specific +initialization of weights and transposed convolutions in the decoder. + +## up and running + +```bash +$ docker-compose run --rm demucs input/test.mp3 +``` + +## comparison + +https://ai.honu.io/papers/demucs/ + +[1]: https://github.com/facebookresearch/demucs diff --git a/demucs/docker-compose.yml b/demucs/docker-compose.yml new file mode 100644 index 0000000..beeead1 --- /dev/null +++ b/demucs/docker-compose.yml @@ -0,0 +1,8 @@ +version: "3.8" +services: + demucs: + image: vimagick/demucs + volumes: + - ./models:/opt/demucs/models + - ./output:/opt/demucs/output + - ./input:/opt/demucs/input