Mel-Band RoFormer (vocals) for ai-toolkit

Safetensors repack of Kimberley Jensen's Mel-Band RoFormer vocal separation model, used by ai-toolkit to split songs into a vocals track and an instrumental track (instrumental = mix - vocals).

These weights are not ours. All credit goes to the original authors:

Files

file notes
melbandroformer_vocals_kj.safetensors fp32, byte-identical tensors to the original .ckpt. Model kwargs and inference defaults (chunk_size, num_overlap) are stored in the safetensors metadata, so no separate config is needed.

Conversion script: scripts/convert_melbandroformer.py.

Usage

ai-toolkit downloads this file automatically on first use:

python -m toolkit.audio.melbandroformer song.flac
# -> song_vocals.flac, song_instrumental.flac
from toolkit.audio.melbandroformer import load_melbandroformer, separate
model = load_melbandroformer(device="cuda", compile=True)
vocals, instrumental = separate(model, wav, sample_rate)  # wav: [channels, samples]

Input: mono or stereo at any sample rate (resampled to 44.1 kHz internally, output at the input rate).

License

MIT, same as the original weights and code.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Paper for ai-toolkit/melbandroformer