deezer / deezer/spleeter

[Feature] Create a Docker image for Apple Silicon

Open
#894 1 comment 1 reaction 0 assignees View on GitHub
enhancement feature
Dominant language
Python
Stars
28.4k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

## 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:

```sh
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](https://github.com/adefossez/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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.