File size: 2,676 Bytes
123e06f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
license: mit
tags: [music-source-separation, stems, scnet, coreml, wobble]
---
# Wobble Split model pack

Core ML build of **SCNet-Large** for the Wobble sample browser (macOS 14+): pulls a loop apart into
drums, bass, other and vocals, on the Mac. The app downloads it when Split is first used (or in
Settings); nothing here is needed to run Wobble, and the app works without it.

`manifest.json` lists the pack with its size, SHA-256 and settings. Pack files live in
`packs/<id>/<version>/` and are never changed after upload; a new build gets a new version.

| Pack | What it is | Size |
|---|---|---|
| `split-large` | Split: Pull a loop apart into drums, bass, other and vocals. | 80 MB |

## What the app does around the model (front end `scnet-stft-4096-v1`)

The pack unpacks to `split.mlpackage`, `NOTICE` and `LICENSE-scnet`. `convert/frontend.py` is the exact
reference (numpy); `convert/common.py` `separate()` is the whole-file loop.

1. 44.1 kHz stereo. Normalise the whole loop by the mean and standard deviation (ddof 1) of its mono mix.
2. Cut into 11 s segments (485100 samples), 50 % overlap; the last ones centre-padded with zeros.
3. Each segment: pad 1300 zeros at the end (486400 samples), STFT with **no window** (rectangular),
   n_fft 4096, hop 1024, centre with reflect padding of 2048, one-sided (2049 bins), × 1/√4096.
4. Model input `spec` [1, 4, 2049, 476]: channels L.re, L.im, R.re, R.im (float32).
5. Model output `stems` [1, 16, 2049, 476]: channel (source × 2 + L/R) × 2 + (re | im); sources
   drums, bass, other, vocals.
6. Inverse: irfft each frame × √4096, overlap-add at hop 1024, divide by the number of frames covering
   each sample, drop the first 2048 samples, keep 485100.
7. Cross-fade the segments with a triangle window, undo step 1.

Runs on CPU + GPU (`computeUnits: cpuAndGPU`; the Neural Engine compiler stalls on this model).
On an Apple Silicon Mac a segment takes about 1150.0 ms; a 25 s loop about 6 s.

## Quality

Output matches the original PyTorch model to 61 dB SDR (no audible difference). On 10 jazzy
construction kits rebuilt from their parts (so every stem has a known answer), mean SDR: drums
7.9 dB, bass 14.6 dB, other 10.3 dB (`convert/kits.py`).

## Licences and credit

- Weights and model code: SCNet by Weinan Tong et al., MIT (https://github.com/starrytong/SCNet).
  Tong et al., "SCNet: Sparse Compression Network for Music Source Separation", ICASSP 2024.
  The author allows redistributing the original and converted checkpoints with credit.
- Training data: MUSDB18-HQ, licensed for research and education; it carries its own terms.
- Conversion scripts in `convert/`: MIT, monokern.