Comments (7)
We will probably also at some point distribute ready to use Docker image on DockerHub which will embed model directly.
from spleeter.
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.
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.
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.
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.
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.
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)
- Doesn't Work with Sonoma HOT 2
- [Bug] Version 3.12 compatible
- Regarding the use of separate_to_file, a deprecation warning is prompted! HOT 1
- Cannot do `poetry add spleeter` due to `tensorflow-io-gcs-filesystem` error
- [Discussion] your question HOT 1
- [Feature] your feature name
- I created web UI. You can have it
- [Bug] Fail to install (with python 3.10.13) HOT 4
- Install fail on macOS Sonoma 14.2, on Apple M2 laptop HOT 4
- Why is the audio unchanged after separation? HOT 6
- Index Error
- [Discussion] cuda memory optimisation issues
- [Feature] Create a Docker image for Apple Silicon HOT 1
- [Discussion] Is there any way to release memory after separating is done?? HOT 2
- How to use 2stems-finetune?
- [Discussion] license for model weights
- AssertionError: Nesting violated for default stack of <class 'tensorflow.python.framework.ops.Graph'> objects HOT 2
- Separator failing with "Trying to set the stream twice. This isn't supported. "
- The TensorFlow library was compiled to use SSE4.1 instructions, but these aren't available on your machine. Aborted (core dumped)
- [Feature] tell people how to run from git HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spleeter.