Comments (5)
I answer my own question:
After downloading about 10Gb in a micromamba env, i was able to download and convert the demucs model files, the links are
https://dl.fbaipublicfiles.com/demucs/hybrid_transformer/955717e8-8726e21a.th
https://dl.fbaipublicfiles.com/demucs/hybrid_transformer/5c90dfd2-34c22ccb.th
https://dl.fbaipublicfiles.com/demucs/hybrid_transformer/f7e0c4bc-ba3fe64a.th
https://dl.fbaipublicfiles.com/demucs/hybrid_transformer/d12395a8-e57c48e6.th
https://dl.fbaipublicfiles.com/demucs/hybrid_transformer/92cfc3b6-ef3bcb9c.th
https://dl.fbaipublicfiles.com/demucs/hybrid_transformer/04573f0d-f3cf25b2.th
https://dl.fbaipublicfiles.com/demucs/hybrid_transformer/75fc33f5-1941ce65.th
To convert, these need to be placed here: ~/.cache/torch/hub/checkpoints/
To save this hassle for everybody else, i uploaded the ggml files here:
https://huggingface.co/datasets/Retrobear/demucs.cpp/tree/main
Cheers
from demucs.cpp.
Yes, after all the instructions did work. I had to remove "-e ./vendor/demucs" from requirements.txt and manually install torch and demucs. I have an old slow machine and slow internet connections, various timeouts while downloading the whole python-env etc..
Indeed then the weight downloads and conversion did work flawlessly, i put the links here just for reference as i asked for them myself. Maybe these are useful(at least to me) if another conversion to something else is needed.
from demucs.cpp.
Nice - did these instructions not work? https://github.com/sevagh/demucs.cpp?tab=readme-ov-file#convert-weights
I suppose they are Linux-centric (where ~/.cache/torch/hub/checkpoints
is where Torch automatically downloads the weights files). That step should run when the model is initialized like so:
https://github.com/sevagh/demucs.cpp/blob/main/scripts/convert-pth-to-ggml.py#L49-L70
When demucs.pretrained.get_model
is called, it should automatically download those files to Path(torch.hub.get_dir()) / "checkpoints"
.
from demucs.cpp.
Your huggingface model files might be useful to others, in case you want to add them to the README of this repo I'd be happy to accept a PR.
from demucs.cpp.
Your huggingface model files might be useful to others, in case you want to add them to the README of this repo I'd be happy to accept a PR.
Done :-)
from demucs.cpp.
Related Issues (12)
- Amount of time to demux an audio file HOT 4
- Feature request - better progress reporting and logging HOT 5
- Feature request - optional logging HOT 1
- CMakeLists.txt demucs.cpp.test target - missing dependency gtest HOT 2
- Support Demucs v3 (hdemucs_mmi) HOT 1
- unknown target CPI 'apple-m1' HOT 2
- Question about GPU HOT 6
- demucs_mt.cpp.main hard wired for 4-source HOT 2
- Memory access error with MT on mac HOT 2
- Two stem model HOT 3
- How to apply it in WebAssembly? HOT 11
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 demucs.cpp.