all projects

Audio Source Separation

Pulling the vocals out of a finished song with a spectrogram-masking LSTM.

Demo coming soon. The repository has the real thing in the meantime.

Role
Solo. Model, training and inference pipelines, and the demo app.
Outcome
An Open-Unmix-style 3-layer bidirectional LSTM built from scratch. The web demo serves the pretrained Open-Unmix model.
Stack
Python, PyTorch, librosa, MUSDB18

A mixed song is one waveform. This project turns it into a magnitude spectrogram, predicts a mask between 0 and 1 for every time-frequency bin, and multiplies it back onto the mixture to keep only the vocals.

  • Model: a 3-layer bidirectional LSTM (512 hidden units) with a sigmoid output, trained with MSE in the magnitude domain on MUSDB18.
  • Phase-preserving reconstruction: the mask applies to magnitudes only; the original mixture phase is reused, which keeps timing cues intact.
  • Per-frequency normalization: mean and standard deviation per frequency bin keep loud and quiet bands balanced and made training noticeably more stable.
  • Stereo: each channel gets its own STFT and mask; channels and bins are flattened together so the LSTM can use inter-channel context.

The demo backend runs the pretrained Open-Unmix model rather than my own weights: training to full convergence was outside what this project needed to prove.