Skip to content
bascurtizPublic

About

A modern desktop GUI for [Music-Source-Separation-Training](https://github.com/ZFTurbo/Music-Source-Separation-Training) (MSST) to inference

Resources

Stars

16 stars

Watchers

1 watching

Forks

Repository files navigation

MSST GUI

A modern desktop GUI for Music-Source-Separation-Training (MSST) by ZFTurbo, built with PySide6 and styled after mvsep.com.

Separate audio into stems (vocals, instrumental, drums, bass, guitar, piano, …) with state-of-the-art Roformer, MDX, Demucs, SCNet, Apollo and Bandit models — no command line required.

The app vendors ZFTurbo's MSST scripts (inference.py, train.py, valid.py, ensemble.py plus utils/ / models/ / configs/). Jobs spawn those local files; this is not a wrapper around pip install msst.

MSST GUI in action

Features

  • Inference — drop or browse audio files (WAV, FLAC, MP3, …), pick a model from the library (grouped by architecture), choose quality (FLAC 16-bit, FLAC 24-bit, or WAV 32-bit float), stems, TTA and device (GPU/CPU auto-detected).
  • Training — train or fine-tune any MSST architecture from the GUI: pick a config, dataset, validation set and checkpoint, tune batch size / learning rate / losses / metrics, and watch progress, validation metrics and the log live (runs train.py from ZFTurbo's repo).
  • Auto Ensemble — select a target stem type and every compatible registered model is combined automatically.
  • Manual Ensemble — combine custom model outputs with per-file weights and selectable ensemble algorithms.
  • Iterative Ensemble — multi-pass refinement through local models and the MVSep API for maximum-spec results.
  • Console — live processing log plus per-song result cards with color-coded stem waveforms, playback and output file access.
  • Model Manager — browse the community model index straight from HuggingFace, download with progress tracking, or register local checkpoints / download from a URL.
  • Dark & light theme with a one-click switch (mvsep.com-styled palettes, bundled Montserrat font).
  • Native-window feel: frameless chrome, edge resizing, maximize/restore — and a settings editor for per-checkpoint parameters.

Requirements

  • Windows 10/11 (tested); anything that runs PySide6 + PyTorch should work
  • Python 3.10+ (3.11 recommended)
  • NVIDIA GPU with CUDA for GPU inference (CPU-only works too, just slower)

Installation

Quick (Windows)

  1. Run run_install.bat — creates a virtual environment, installs PyTorch with CUDA 12.8 support and all dependencies.
  2. Run run_gui.bat to start the GUI.

Manual

python -m venv .venv
.venv\Scripts\activate
# GPU build of PyTorch first (otherwise the requirements pull the CPU-only wheel):
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
pip install -r requirements_gui.txt
python main.py

Training

The Training tab wraps train.py / valid.py from Music-Source-Separation-Training:

  1. Pick a model config (configs/…yaml), a results folder, the training data folder(s) and the validation folder (MUSDB layout with mixture.wav, see the ⓘ on Dataset type).
  2. Adjust the training settings (batch size, learning rate, epochs, optimizer, loss functions, validation metrics) — the values are read from the YAML and written back into results/train_config_<model>.yaml for the run.
  3. Optionally resume from a checkpoint (Latest picks the newest one in the results folder) and set GPUs / workers / seed, launcher (Standard / DDP / Accelerate), LoRA, freeze layers and wandb in GPUs / Workers / Seed.
  4. Start Training — the monitor shows step progress, validation metrics per epoch and the log (results/train_log.txt). Checkpoints land in the results folder and can be registered in Settings for inference.

The job runs under the same private runtime as inference (no torch in the GUI process).

The utils/, models/, configs/, docs/ and scripts/ trees plus train.py, valid.py, inference.py and ensemble.py are vendored from Music-Source-Separation-Training (its README is at docs/README_MSST.md; packaged-API docs live under docs/cli.md and docs/python_api.md). We do not depend on the PyPI msst wheel.

Getting models

Open Settings → Register Model → Model Manager to browse the community model index from HuggingFace and download models with one click. Alternatively register a local checkpoint (Local Files) or fetch one from a direct URL (Download from URL).

Downloads and registered models are stored under models/; your settings and registrations live in msst_settings.json (both are user data — keep them out of any published repo, see .gitignore).

Standalone exe

Build a self-contained Windows app with:

python tools/prepare_runtime.py   # once: bundles an embedded Python (pip included)
pyinstaller MSST-GUI.spec --noconfirm

Or everything in one step (app + installer, requires Inno Setup 6):

tools\build_all.bat

The result in dist/MSST-GUI/ needs no Python installed; MSST-GUI-Setup-*.exe is a per-user installer (Start-menu + optional desktop shortcuts, clean uninstaller that preserves your models and settings). Separation jobs run under a private runtime (runtime/ next to the exe) that is provisioned on first use:

  • RTX 50-series and newer → PyTorch CUDA 12.8 wheels
  • GTX 10-series through RTX 40-series → PyTorch CUDA 12.1 wheels
  • no NVIDIA GPU → CPU wheels

One PyTorch build cannot cover both Pascal and Blackwell, so the download (~2.5–3 GB, once) is picked for the detected GPU when you start your first job.

Project layout

├── main.py               # GUI entry point
├── inference.py          # separation runner (spawned per job)
├── ensemble.py           # ensemble runner
├── train.py              # training runner (MSST train.py, spawned by the TRAINING tab)
├── valid.py              # validation used by train.py
├── ui/                   # PySide6 interface (pages, widgets, theme)
├── backend/              # runners, model manager, settings store, MVSep client
├── models/               # per-architecture model code + your checkpoints
├── configs/              # model YAML configs
├── utils/                # audio helpers
├── resources/            # fonts, icons, global stylesheet
└── tests/                # pytest suite

Troubleshooting & logs

The app writes msst-gui.log next to the executable (rotated at 2 MB). It captures Python errors, Qt warnings and the update check. To see output live in your terminal instead:

MSST-GUI.exe --console

Running tests

pytest tests

Credits

About

A modern desktop GUI for [Music-Source-Separation-Training](https://github.com/ZFTurbo/Music-Source-Separation-Training) (MSST) to inference

Resources

Stars

16 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages