deezer / spleeter

Deezer source separation library including pretrained models.

Home Page:https://research.deezer.com/projects/spleeter.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature] Create a Docker image for Apple Silicon

vigneshsankariyer1234567890 opened this issue · comments

Description

At the moment, running the latest Docker image for Spleeter on Macs with Apple Silicon requires one of 2 things:

  1. Docker Desktop with at least v4.27.0, which runs Docker Engine v25.0.0,
  2. Specifying Docker engine to run on AMD64 platform

This feels really hacky, and essentially requires me to run the following command on my M1 Macbook Pro:

docker run --rm --platform linux/amd64 \
  -v "/path/to/input:/input" \
  -v "/path/to/output:/output" \
  -v "/path/to/model/volume:/model" \
  deezer/spleeter:3.8-5stems separate \
  -o /output \
  --codec mp3 \
  -p spleeter:2stems \
  /input/track.mp3

On top of that, when comparing execution speed against comparable source separation models such as demucs, performance is particularly affected even for separation on only 2 sources. Spleeter takes about 2 mins for a 30s clip to split into 2 sources, whereas Demucs takes only 1 min 20s to separate into 4 sources. It would be nice if there was an image compatible with ARM64. Of course, as an alternative option, we can also update the documentation on Docker to state the dependencies needed to run on Macs for local development.