Comments (11)
Take a look at this: https://github.com/sevagh/demucs.cpp/tree/wasm/src_wasm
It gives some hints (not all) of how to make a functioning website similar to freemusicdemixer.com
from demucs.cpp.
I'll work on adding more obvious WebAssembly pieces to this repo.
from demucs.cpp.
The instructions are very clear. I was able to compile demucs.js
and demucs.wasm
correctly on MacOS. If it can be helpful to anyone else, I deviated from the instructions and installed emscripten
on MacOS via brew install emscripten
.
I'll try running the compiled files in the browser later, but I understand the required steps.
Thanks for the help and for your efforts in this amazing project 🙌🏻
from demucs.cpp.
Thank you very much
from demucs.cpp.
From https://github.com/sevagh/freemusicdemixer.com 's docs it seems the library is supposed to be compiled using emscripten. I gave it a shot but I wasn't able to compile it, but I'm not really familiar with this ecosystem.
Adding instructions to the README would be very appreciated 🙂
from demucs.cpp.
@illbexyz @sevagh Sorry to bother you, I always get the following error when trying wasm files. Can you all compile normally? Do I need to do anything extra?
/root/emsdk/upstream/lib/clang/19/include/mmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
14 | #error "This header is only meant to be used on x86 and x64 architecture"
from demucs.cpp.
This command worked for me:
rm -rf build-wasm && mkdir -p build-wasm && cd build-wasm \
&& emcmake cmake -DCMAKE_BUILD_TYPE=Release \
../src_wasm && make -j16'
from demucs.cpp.
@illbexyz Okay, I used the same command as you, but it didn't work... My system is M1 Max. I'm not sure if this has anything to do with the operating system.
from demucs.cpp.
Are you sure you are using emcmake cmake
and not plain cmake
?
from demucs.cpp.
Are you sure you are using
emcmake cmake
and not plaincmake
?
Yes, I am sure that I executed it with the following command.
rm -rf build-wasm && mkdir -p build-wasm && cd build-wasm \
&& emcmake cmake -DCMAKE_BUILD_TYPE=Release \
../src_wasm && make -j16
from demucs.cpp.
I think it's OK to keep this issue closed. I think Mac/OSX problems with the Emscripten/WASM toolchain is out of the scope of demucs.cpp
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
- Demucs weights HOT 5
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.