BandSplitRNNOptions
Options & Configuration · AiDotNet.Audio.SourceSeparation
Configuration options for the BandSplitRNN source separation model.
Inheritance: ModelOptions → BandSplitRNNOptions
For Beginners
BandSplitRNN works like a team of specialists: each specialist listens to a specific frequency range (e.g., bass frequencies, mid-range, treble), learns to identify what belongs to each instrument in their range, and then they all compare notes to produce a consistent separation across the full frequency spectrum. This “divide and share” approach works better than trying to process all frequencies at once.
How It Works
BandSplitRNN (Luo and Yu, 2023) is the original Band-Split RNN model designed specifically for music source separation. It splits the spectrogram into non-overlapping frequency bands, processes each with a shared band-level RNN, applies cross-band fusion via a sequence-level RNN, and then reconstructs source-specific masks. It achieves 10.0+ dB SDR on MUSDB18-HQ.
Constructors
| Constructor | Summary |
|---|---|
BandSplitRNNOptions() |
Properties
| Property | Summary |
|---|---|
OnnxModelOptions OnnxOptions { get; set; } |
Gets or sets the ONNX runtime options. |
double DropoutRate { get; set; } |
Gets or sets the dropout rate. |
double LearningRate { get; set; } |
Gets or sets the learning rate. |
double WeightDecay { get; set; } |
Gets or sets the weight decay. |
int BandRnnHiddenSize { get; set; } |
Gets or sets the hidden size of the band-level RNN. |
int FftSize { get; set; } |
Gets or sets the FFT window size. |
int FusionDim { get; set; } |
Gets or sets the band fusion hidden dimension. |
int HopLength { get; set; } |
Gets or sets the hop length between frames. |
int NumBandRnnLayers { get; set; } |
Gets or sets the number of band-level RNN layers. |
int NumBands { get; set; } |
Gets or sets the number of frequency bands to split into. |
int NumFreqBins { get; set; } |
Gets or sets the number of frequency bins. |
int NumSequenceRnnLayers { get; set; } |
Gets or sets the number of sequence-level RNN layers. |
int NumStems { get; set; } |
Gets or sets the number of stems/sources. |
int SampleRate { get; set; } |
Gets or sets the expected audio sample rate in Hz. |
int SequenceRnnHiddenSize { get; set; } |
Gets or sets the hidden size of the sequence-level (cross-band) RNN. |
string ModelPath { get; set; } |
Gets or sets the path to the ONNX model file. |
string[] Sources { get; set; } |
Gets or sets the source names to separate. |