SadeghKrmi / demucs

Containerized and streamlitized facebook Demucs app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

demucs binary

Create a docker image with demucs binary

git clone https://github.com/SadeghKrmi/demucs.git
cd demucs
docker image build -it demucs:v1 .

Run the container using demucs:v1 image and bind a directory with input audios

docker container run -it --name demucs -v /root/audio-in/:/app/audio-in demucs:v1 bash

In Dockerfile pyinstaller is used to generate binary executables for demucs First time creating the .spec file, not recommended for this repo

cd /app/app 
pyinstaller --add-data="/usr/local/lib/python3.11/site-packages/demucs:demucs/" separator.py --onefile

Running using .spec file contianing the spec to exclude un-used packages, etc. Excluding the nvidia cuda python packages, to create lower image size running only over CPU

pyinstaller separator.spec

About

Containerized and streamlitized facebook Demucs app

License:MIT License


Languages

Language:Python 89.0%Language:Dockerfile 8.9%Language:CSS 2.1%