Giter VIP home page Giter VIP logo

Comments (7)

Faylixe avatar Faylixe commented on August 17, 2024 7

We will probably also at some point distribute ready to use Docker image on DockerHub which will embed model directly.

from spleeter.

mickdekkers avatar mickdekkers commented on August 17, 2024 3

In the interim, you can add this to your Dockerfile somewhere after the WORKDIR /workspace/spleeter command:

RUN mkdir -p ./pretrained_models/2stems && \
    wget -nv https://github.com/deezer/spleeter/releases/download/v1.4.0/2stems.tar.gz && \
    tar -xvzf 2stems.tar.gz -C ./pretrained_models/2stems && \
    rm -f 2stems.tar.gz

This will download and extract the 2stems model to the right place (adjust for different models). Note that you'll need to rebuild after updating your Dockerfile.

from spleeter.

pppq avatar pppq commented on August 17, 2024 1

I also tried adding a volume for it at /model, mentioned in the Getting started page of the wiki, but it does not seem to pick up a pre-downloaded instance.

from spleeter.

alreadytaikeune avatar alreadytaikeune commented on August 17, 2024 1

Hello,

There is indeed a problem in the wiki. /model doesn't correspond to the path where the models are actually extracted it seems. They are in /workspace/spleeter/pretrained_models, so you can mount a volume there, e.g.

nvidia-docker run -v $(pwd)/output:/output -v $(pwd)/pretrained_models:/workspace/spleeter/pretrained_models ...

from spleeter.

pppq avatar pppq commented on August 17, 2024

Thanks! I see now that the MODEL_PATH environment variable can also control the location within the container, so I could make the example work without re-download by adding -e MODEL_PATH=/model to the command.

from spleeter.

alreadytaikeune avatar alreadytaikeune commented on August 17, 2024

Indeed, you can also keep the command given in the wiki, and set the environment variable -e MODEL_PATH=/model when running the container.

from spleeter.

romi1502 avatar romi1502 commented on August 17, 2024

I fixed the command in the wiki with the extra -e MODEL_PATH=/model option.
As suggested by @mickdekkers, you can also build your own image with the model you need (avoiding including all models when you only need one).

from spleeter.

Related Issues (20)

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.