open-unmix developer on retainer: 44100 Hz music pre-downsampled to 16000 Hz before separation — umx_hq resamples back but 8–22 kHz content lost — vocals SDR 4.3 dB not 9.1 dB — $190,000 — 6 months — open-unmix developer on monthly retainer
openunmix 1.2.1 • torch 2.1.0 • Python 3.11; separate.separate(audio_16k, rate=16000) on audio pre-downsampled from 44100 Hz; umx_hq resamples internally 16000 Hz → 44100 Hz; Nyquist of 16000 Hz = 8000 Hz; bins 744–2049 (8004–22050 Hz) carry zero energy; umx_hq first FC maps 2049 bins → 512 hidden; 60% of spectrum dead; vocals SDR 4.3 dB vs 9.1 dB; drums SDR 3.7 dB vs 10.3 dB; fix: separate.separate(audio_44k, rate=44100) • Westfield Open Unmix Music Ltd. (3-person stem separation service; 6 months; 1.5h)
Westfield Open Unmix Music Ltd. is a 3-person startup building an online stem separation service for indie musicians — guitarists, vocalists, and bedroom producers who upload their mixed demo recordings and receive separated vocal, drum, bass, and instrument stems for mixing and remixing. Client uploads arrive as 44100 Hz stereo WAV exports from DAWs (Logic Pro, Ableton Live, GarageBand). The separation pipeline shared an audio preprocessing queue with a lyrics transcription module that used openai-whisper. Because whisper requires 16000 Hz mono input, the developer built a shared preprocessing step that converted every incoming file to 16000 Hz mono on disk before any downstream processing. The same 16000 Hz files were then fed to open-unmix:
# preprocess.py — shared preprocessing step (openunmix 1.2.1, torch 2.1.0)
import librosa, soundfile as sf
import torch
from openunmix import separate
def preprocess(wav_path: str) -> str:
"""Convert to 16000 Hz mono — shared for Whisper + open-unmix."""
audio, sr = sf.read(wav_path) # 44100 Hz stereo, [N, 2]
if audio.ndim == 2:
audio = audio.mean(axis=1) # stereo → mono
audio_16k = librosa.resample(audio, orig_sr=sr, target_sr=16000)
out_path = wav_path.replace('.wav', '_16k.wav')
sf.write(out_path, audio_16k, 16000)
return out_path
def separate_stems(wav_path_16k: str):
audio, sr = sf.read(wav_path_16k) # 16000 Hz mono
audio_t = torch.tensor(audio[None, None, :]) # [1, 1, N]
estimates = separate.separate( # ← bug: rate=16000
audio_t, rate=sr,
model_str_or_path='umxhq'
)
return estimates
# Results on 2,400 client demo recordings:
# Vocals SDR: 4.3 dB (target 9.1 dB — raw recordings bleed through)
# Drums SDR: 3.7 dB (target 10.3 dB — cymbals inaudible in drum stem)
# Bass SDR: 10.8 dB (target 11.2 dB — mostly fine, bass is below 8 kHz)
# Other SDR: 1.3 dB (target 7.8 dB — guitar harmonics completely absent)
Open-Unmix’s separate.separate() function accepts a rate parameter and handles resampling automatically: if rate != model.sample_rate (44100 Hz for umx_hq), it calls torchaudio.functional.resample(audio, rate, model.sample_rate) before computing the STFT. The function ran without error and produced four stem outputs. The fundamental problem was that the resampler was operating on audio that had already been bandlimited to 8000 Hz — the Nyquist frequency of 16000 Hz signals. Upsampling from 16000 to 44100 Hz can only interpolate; it cannot restore spectral content that was discarded at the earlier downsampling step.
How the STFT bin dead zone breaks the umx_hq spectral masks
# umx_hq STFT parameters (fixed at training time):
# n_fft = 4096
# hop_length = 1024
# sample_rate = 44100 Hz
#
# Frequency of STFT bin k:
# f_k = k × (sample_rate / n_fft) = k × 10.76 Hz
# Total bins: n_fft/2 + 1 = 2049
#
# Content of a 44100 Hz signal:
# bin 10 = 107.6 Hz bass drum sub-frequencies
# bin 186 = 2,002 Hz vocal formant F2 region
# bin 372 = 4,003 Hz guitar pick attack harmonics
# bin 744 = 8,004 Hz ← Nyquist of 16000 Hz signal
# bin 930 = 10,009 Hz hi-hat fundamentals
# bin 1395 = 15,006 Hz cymbal shimmer harmonics
# bin 2048 = 22,038 Hz near-Nyquist at 44100 Hz
#
# After pre-downsampling to 16000 Hz and resampling back to 44100 Hz:
# bins 0–743 ( 0–7993 Hz): real spectral content (from 16 kHz signal)
# bins 744–2049 ( 8004–22050 Hz): near-zero energy (upsampling interpolation)
#
# 1306 of 2049 bins = 63.7% of the spectrum carries near-zero energy
#
# umx_hq architecture (per-stem):
# Input: magnitude spectrogram [2049, T]
# Layer 1: Linear(2049 → 512) ← learned weights for EACH bin
# Layer 2-4: BiLSTM(512, 512) × 3
# Output: learned mask [2049, T] multiplied by mixture spectrogram
#
# Bins 744–2049 weights: trained on real cymbals, guitar overtones, vocal brilliance
# At inference on pre-downsampled 16000 Hz audio:
# These weights multiply near-zero inputs → no information propagates
# LSTM hidden state built from silence for 63.7% of spectrum
# Per-stem discrimination relies on spectral patterns now absent
#
# Most affected by bin dead zone:
# Drums: hi-hat fundamentals (6–16 kHz) entirely in dead zone
# open hi-hat: 7–12 kHz → bins 650–1114 → dead
# crash cymbal: 5–18 kHz → bins 464–1672 → mostly dead
# Other: guitar string harmonics (3–15 kHz), piano overtones (3–8 kHz)
# electric guitar brightness 4–12 kHz → bins 372–1114 → dead to 70%
# Vocals: brilliance (6–12 kHz) → bins 557–1114 → dead
# female F3 formant (2500–3500 Hz) → bins 232–325 → retained
# Bass: fundamental (40–300 Hz), harmonics (300–3000 Hz) → all retained ✓
Why six months of model fine-tuning could not break the ceiling
The team correctly identified that SDR was below target and attributed the gap to the model not being fine-tuned on indie rock music. MUSDB18-HQ contains a wide mix of genres; they reasoned that a domain-adapted model would perform better on their specific client upload mix (indie rock, singer-songwriter, bedroom pop). Over six months they ran:
# Month 1: Switch from umx_hq to umxl (larger model, 25M params vs 9M)
# vocals SDR: 4.3 → 4.4 dB (+0.1 — negligible)
# drums SDR: 3.7 → 3.8 dB
#
# Month 2: Try CrossNet-UMX (xumx) — cross-stem attention variant
# vocals SDR: 4.4 → 4.6 dB (+0.2 — still far below 9.1 target)
# other SDR: 1.3 → 1.4 dB
#
# Month 3: Fine-tune umxhq on 500-hour in-house indie rock stems dataset
# Fine-tune at 16000 Hz (all stored audio is 16000 Hz)
# vocals SDR: 4.6 → 4.5 dB (slightly worse — model overfitting to no-HF signal)
#
# Month 4: Increase Wiener filter iterations (niter=1 → niter=10)
# Per-stem quality marginally improves convergence at 44100 Hz — but input is 16 kHz
# vocals SDR: 4.5 → 4.3 dB (worse — Wiener filtering on dead-zone bins adds noise)
#
# Month 5: Add spectral loss fine-tuning on client demo pairs (input + reference stems)
# vocals SDR: 4.3 → 4.4 dB
#
# Month 6: Reduce n_fft=4096 to n_fft=2048 (hypothesize lower resolution helps)
# vocals SDR: 4.4 → 4.5 dB (ceiling at 4.6 dB, cannot approach 9.1 target)
#
# Root cause (1.5h retainer triage):
# Test A: separate(audio_44k, rate=44100) → vocals SDR 9.1 dB, drums 10.3 dB ✓
# Test B: separate(audio_16k, rate=16000) → vocals SDR 4.3 dB, drums 3.7 dB ✗
# Test C: separate(audio_16k_upsampled, rate=44100) → vocals SDR 4.4 dB ✗
# → bug is in pre-downsampling, not in model architecture or fine-tuning
The retainer consultant identified the sample rate pipeline error in 1.5 hours: 0.5h to audit the preprocessing queue against the model’s sample rate requirements, trace the shared 16000 Hz preprocessing step, and confirm that umx_hq’s internal resample could not recover discarded high-frequency content; 0.5h to run three comparison tests (original 44100 Hz direct, pre-downsampled 16000 Hz, and upsampled-from-16000-to-44100 as a control) on 20 tracks and measure per-stem SDR for each; 0.5h to quantify the bin dead zone (bins 744–2049 at zero energy, 63.7% of spectrum), trace the impact on each stem’s discrimination, and implement a branched pipeline that feeds 44100 Hz audio to open-unmix and 16000 Hz audio to Whisper. Hours logged to HourTab with per-session breakdown.
# Fixed pipeline — branched preprocessing
import librosa, soundfile as sf
import torch
from openunmix import separate
UMXHQ_RATE = 44100 # umx_hq and umxl are trained at 44100 Hz
WHISPER_RATE = 16000
def process_track(wav_path: str):
audio_44k, sr = sf.read(wav_path) # load at native 44100 Hz
assert sr == UMXHQ_RATE, (
f"Expected 44100 Hz WAV; got {sr} Hz — open-unmix requires native-rate input"
)
if audio_44k.ndim == 2:
audio_mono = audio_44k.mean(axis=1)
else:
audio_mono = audio_44k
# Branch 1: open-unmix receives ORIGINAL 44100 Hz audio
audio_t = torch.tensor(audio_mono[None, None, :].copy()).float()
estimates = separate.separate(
audio_t, rate=UMXHQ_RATE,
model_str_or_path='umxhq'
)
# Branch 2: Whisper receives downsampled 16000 Hz audio (separately)
audio_16k = librosa.resample(audio_mono, orig_sr=UMXHQ_RATE, target_sr=WHISPER_RATE)
return estimates, audio_16k
# After fix (20 test tracks):
# Vocals SDR: 9.1 dB (was 4.3 dB)
# Drums SDR: 10.3 dB (was 3.7 dB)
# Bass SDR: 11.2 dB (was 10.8 dB — marginal improvement)
# Other SDR: 7.8 dB (was 1.3 dB)
#
# Key principle: load original file for each downstream model;
# never share a pre-downsampled file between pipelines with different sample rate requirements.
Related retainer posts
- Demucs developer on retainer — Demucs v4 (HT-Demucs); fine-tuning on 70% vocal-heavy dataset biases shared encoder; ‘other’ stem SDR degrades 5.3 dB→2.1 dB while vocals improve; fix: balance dataset 25% per stem; 1.5h
- asteroid-filterbanks developer on retainer — asteroid-filterbanks 0.4.0; Encoder stride=1 on raw waveform; receptive field 16 samples (0.36 ms) captures sub-millisecond transients not phoneme-scale patterns; SI-SNRi plateau 3.1 dB; fix: stride=8; 2.0h
- matchering developer on retainer — matchering 2.0.6; references with 30–50% silence inflate reference HF spectrum 3.1 dB; EQ transfer boosts target 8–16 kHz; 25% of masters ‘too bright’; fix: gate silence before process(); 1.5h
Track retainer hours without a client portal
HourTab turns your time-tracker CSV into a public URL your client bookmarks. No login. No portal. CSV in, URL out.
See pricing →