Skip to content
المشاريع

حول

Modern source separation

التصميم والوسائط

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
+١
خلال 15 يومًا
+١
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Unblend

Unblend is a music source separation inference library designed to be fast and easy to use. On CUDA it runs HTDemucs up to 10x faster than upstream Demucs at equal quality (on H200s against upstream on the PyTorch 2.1 it supports). It implements one consistent API across four supported model architectures: HTDemucs, BS-RoFormer, Mel-Band RoFormer, and SCNet.

Installation

Prerequisites

  • FFmpeg v4–v8 (not v9 yet)
  • uv
  • Optional: C/C++ compiler such as GCC, Clang, or MSVC - enables torch.compile support
  • Optional: NVCC (NVIDIA CUDA Compiler) and Ninja - enables custom CUDA kernels

Install using uv

Create a virtual environment backed by a uv-managed Python:

$ uv python install 3.12
$ uv venv --managed-python --python 3.12
$ source .venv/bin/activate

Then install Unblend into that environment:

$ uv pip install unblend --torch-backend=auto

Temporary Installation

With uv, you can use the uvx command to run Unblend without installing it permanently on your system.

$ uvx unblend separate audio_file.mp3

Note: uvx can't pick a PyTorch build for your GPU, so it gets PyPI's default wheel: GPUs only work on Apple Silicon, or on Linux with PyTorch's default CUDA version.

CLI Usage

After installing Unblend:

$ unblend --help
$ unblend separate audio_file.mp3
$ unblend separate audio_file_1.mp3 audio_file_2.mp3 music_folder/

Stems are written to separated/{model}/{track}/{stem}.wav by default, at the model's sample rate (44.1 kHz stereo for every registered model) whatever the input's. Change it with -o, using the variables {model}, {track}, {parent} (the name of the track's folder), {stem}, {ext}, {date}, {time} and {timestamp}, and pick the container with -f (e.g. -f flac). Two tracks with the same name in different folders need {parent} in the template, or they would write to the same place (the CLI refuses rather than overwrite). Other common options:

  • -m MODEL picks a model (see unblend models list); the default auto picks an HTDemucs model.
  • --isolate-stem vocals writes just vocals and no_vocals.
  • --seed 0, or --shifts 0, makes output reproducible run to run.
  • unblend tune measures the fastest batch size and compile setting for your GPU.

Models

Model Architecture Stems Weights license
htdemucs (default) HTDemucs drums, bass, other, vocals unlicensed
htdemucs_ft HTDemucs (4 fine-tuned models) drums, bass, other, vocals unlicensed
htdemucs_6s HTDemucs drums, bass, other, vocals, guitar, piano unlicensed
bs_roformer_sw BS-RoFormer bass, drums, other, vocals, guitar, piano unlicensed
bs_roformer_anvuew BS-RoFormer vocals, other GPL-3.0
melband_roformer_kim Mel-Band RoFormer vocals, other MIT
scnet_small SCNet drums, bass, other, vocals unlicensed
scnet_xl_wide_v5 SCNet drums, bass, other, vocals unlicensed
roformer_vocals_ensemble ensemble vocals, other mixed
htdemucs_scnet_ensemble ensemble drums, bass, other, vocals unlicensed

API Usage

Unblend has several programmatic interfaces:

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…