spleeter
Route Spleeter source-separation CLI, Python API, training, and MUSDB evaluation workflows.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- spleeter
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Route Spleeter source-separation CLI, Python API, training, and MUSDB evaluation workflows.
- disable-model-invocation
- true
02 资源文件 7
- 参考文档references/cli-reference.md4.4 KB
- 参考文档references/installation-and-runtime.md4.6 KB
- 参考文档references/models-and-configuration.md5.1 KB
- 参考文档references/repo-provenance.md3.5 KB
- 参考文档references/repo-routing-metadata.json317 B
- 参考文档references/troubleshooting.md4.6 KB
- 脚本scripts/check_install.py6.8 KB
03 SKILL.md 正文
Spleeter repo skill
Use this skill when the task names Spleeter, spleeter separate, spleeter train, spleeter evaluate, Deezer source separation, pretrained 2/4/5-stem music demixing, Separator, AudioAdapter, Spleeter JSON configs, MUSDB evaluation, or Spleeter-specific TensorFlow/ffmpeg/model-cache failures.
Spleeter 2.4.2 is a Python package for audio/music source separation using TensorFlow. It offers pretrained vocal/accompaniment and multi-stem models, a Typer CLI, a Python Separator API, training utilities for custom source-separation models, and MUSDB-style evaluation with optional extras.
Start here
-
Confirm runtime basics with scripts/check_install.py or these minimal checks:
python -m spleeter --version python -m spleeter --help ffmpeg -version ffprobe -version -
Read installation and runtime when setup, Python/TensorFlow versions, optional dependencies, ffmpeg, Windows, Apple Silicon, or GPU expectations matter.
-
Read CLI reference before constructing command-line calls.
-
Read models and configuration for
spleeter:descriptors, model cache/download behavior, and custom JSON config loading. -
For failures that are not clearly owned by one workflow, start with root troubleshooting, then route to the nearest sub-skill troubleshooting page.
Workflow routes
| Task family | Read |
|---|---|
Split local audio into vocals/accompaniment or 4/5 stems; choose pretrained descriptor; build spleeter separate commands; use Separator/AudioAdapter; handle filename templates, codecs, MWF, and output validation |
separation |
Prepare custom training CSVs/configs; validate data layout and STFT dimensions; generate tiny training fixtures; run or adapt spleeter train; troubleshoot caches/checkpoints/TensorFlow training |
training |
Evaluate a Spleeter model on MUSDB-style test/<song>/ data; install spleeter[evaluation]; interpret SDR/SAR/SIR/ISR; generate a tiny evaluation fixture; troubleshoot exit code 10, missing sources, and metrics output |
evaluation |
Capability boundaries
- Use this skill for operating Spleeter as a package, not for general audio DSP, generic TensorFlow training, unrelated source-separation libraries, or repository release engineering.
- The verified baseline is a CPU TensorFlow runtime with system
ffmpeg/ffprobe. GPU acceleration can improve speed but is optional and must be verified in the user's active TensorFlow environment before promising GPU execution. - Pretrained separation and evaluation may download model artifacts on first use. Treat first-run network/cache policy as part of the task plan.
- Spleeter's
-i/--inputsstyle is deprecated in this version. Pass audio files as positional arguments tospleeter separate. - Evaluation dependencies are optional: base Spleeter can import and run separation/training help, but
spleeter evaluaterequiresmusdbandmusevalfromspleeter[evaluation].
Common entry points
| Surface | Use |
|---|---|
python -m spleeter separate -p spleeter:2stems -o separated song.wav |
Basic vocal/accompaniment split; see separation workflows. |
from spleeter.separator import Separator |
Python API for in-memory waveforms and file outputs; see separation API. |
python -m spleeter train -d DATA_ROOT -p CONFIG.json |
Custom model training; validate first with training scripts. |
python -m spleeter evaluate --mus_dir MUSDB_ROOT -o OUTPUT -p spleeter:4stems |
MUSDB-style metrics; see evaluation workflow. |
spleeter:2stems, spleeter:4stems, spleeter:5stems |
Embedded pretrained descriptors; see models and configuration. |
Evidence and provenance
This skill was distilled from Spleeter 2.4.2 source, package metadata, public README/CHANGELOG/notebook examples, embedded resource configs, and native tests. See repo provenance for the source commit and evidence paths, and repo routing metadata for managed router placement.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).