question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Discussion] Spleeter works natively on Apple Silicon Macs if you use Apple's version of TensorFlow

See original GitHub issue

Spleeter is working for me natively on my M1 Max MacBook Pro, built against Apple’s Metal version of TensorFlow.

Screenshot

Instructions from memory:

  1. brew install miniforge
  2. conda init "$(basename "${SHELL}")"
  3. conda install -c apple tensorflow-deps numpy scipy llvmlite librosa pandas
  4. pip install tensorflow-macos tensorflow-metal
  5. git clone https://github.com/Deezer/spleeter && cd spleeter
  6. pip install poetry
  7. open the pyproject.toml and get rid of tensorflow/numpy/scipy/llvmlite/librosa/pandas
  8. poetry update
  9. poetry install
  10. poetry build
  11. pip install ./dist/spleeter-2.3.0-py3-none-any.whl

You might have to adapt some of these instructions, but it should broadly set you on the right path.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:6
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
AlexanderPavlenkocommented, Feb 10, 2022

Got it running too. MacBook Air (M1, 2020), macOS 12.2

# https://developer.apple.com/metal/tensorflow-plugin/

conda install -c apple tensorflow-deps==2.5.0
python -m pip install tensorflow-macos==2.5.0
python -m pip install tensorflow-metal
conda install -c apple llvmlite==0.36.0 numba pandas==1.3.3

git clone --depth 1 --branch v2.3.0 https://github.com/deezer/spleeter.git
# edit pyproject.toml :
# -tensorflow = "2.5.0"
# +tensorflow-macos = "2.5.0"
python -m pip install ./spleeter

brew install libsndfile
sudo ln -s /opt/homebrew/lib/libsndfile.dylib /usr/local/lib/
3reactions
romi1502commented, Dec 22, 2021

Hi @argsnd, that’s great news thanks for this solution! we also managed to make it work on M1 but haven’t communicated yet. We’ll update the documentation very soon probably taking inspiration of this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Accelerate spleeter on m1 mac - Apple Stack Exchange
I 'm using spleeter to separate audio into different stems. After many tries I get it working with tensorflow-macos using tensorflow-metal ...
Read more >
Installing TensorFlow on the M1 Mac | by Wei-Meng Lee
This article will show how how to prepare your M1 Mac for developing deep learning projects using TensorFlow. In addition, I will show...
Read more >
deezer - Bountysource
Spleeter is working for me natively on my M1 Max MacBook Pro, built against Apple's Metal version of TensorFlow. Screenshot. Instructions from memory:...
Read more >
Using Tensorflow and Keras on M1 Macs - Minimal Engineering
Following the instruction here Tensorflow Plugin - Metal - Apple ... More importantly, we can specify a version of python needed for each ......
Read more >
Will my Apple Thunderbolt Display monitor work on ... - Quora
Ruslan Tulupov has demonstrated, in two videos, how to have 6 active displays on the brand new Late 2020 Apple Silicon M1 powered...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found