diracdeltas / spleeter4max

separate audio in ableton into stems using Spleeter
https://youtu.be/4pcJoI5CUOA
561 stars 51 forks source link

Spleeter 4 Max doesn't run on M1 Macs #58

Open songsta opened 3 years ago

songsta commented 3 years ago

Hi

The m1 Macs don't have the AVX extensions, so Spleeter cannot be run on them. Is there any chance of getting this working on M1 Macs?

diracdeltas commented 3 years ago

Thanks for pointing this out. This program just calls the spleeter python package, which currently doesn't support M1 because Tensorflow doesn't yet: https://github.com/deezer/spleeter/issues/607#issuecomment-828352392

There is a workaround here which I haven't tried: https://drive.google.com/drive/folders/1ioRr6-xRNizoR7xqWxXUdgjoijFOd2SC. If you get the spleeter command to work, then the max device should just work too.

dezerving commented 3 years ago

Thanks for pointing this out. This program just calls the spleeter python package, which currently doesn't support M1 because Tensorflow doesn't yet: deezer/spleeter#607 (comment)

There is a workaround here which I haven't tried: https://drive.google.com/drive/folders/1ioRr6-xRNizoR7xqWxXUdgjoijFOd2SC. If you get the spleeter command to work, then the max device should just work too.

Currently installing Tensorflow (and then Spleeter) using the workaround. I'll update the post on the status. Here's to hoping it works!

Edit:

Build lasted about ~3h and it errored out. I closed the terminal accidentally so now I have to re-run to see what the error was. Will update if I do eventually get it working or find the error.

Edit 2:

The error has to do with numpy (Executing genrule @local_config_python//:numpy_include failed (Exit 1)).

Trying some workarounds I saw but so far its been rough trying to get this to build through bazel.

Edit 3:

Solved the numpy issue, running into this now...

Failed to load the native Tensorflow runtime.

Executing genrule //tensorflow:tf_python_api_gen_v2 failed (Exit 1).

AYAmusic commented 2 years ago

any luck?

dezerving commented 2 years ago

any luck?

Couldn't crack it. I tried a lot of different things, but I just couldn't get it to work. Ended up just hosting it on my remote server and using a web gui to get it done. Does the same thing, but it's annoying that it's not local and I have to have internet connection.

Oh well. This is something I can work with until Tensorflow is updated for Apple Silicon.

argsnd commented 2 years ago

@AYAmusic https://github.com/deezer/spleeter/issues/696

diracdeltas commented 2 years ago

i saw comments reporting that spleeter is now working when you install it on m1 with these instructions: https://github.com/deezer/spleeter/issues/607#issuecomment-1146988749