SCNetOptions
Options & Configuration ยท AiDotNet.Audio.SourceSeparation
Configuration options for the SCNet (Sparse Compression Network) source separation model.
Inheritance: ModelOptions โ SCNetOptions
For Beginners
SCNet is like a fast note-taker who summarizes a complex speech into key points, processes just those points, and then expands them back to the full detail. By compressing audio information before processing, it runs faster than methods that process every frequency individually, while still producing high-quality separations.
How It Works
SCNet (Chen et al., 2024) uses a sparse compression approach that compresses frequency features into compact representations before processing with attention layers. This reduces computation while maintaining separation quality. It achieves competitive results on MUSDB18-HQ with significantly fewer parameters than Transformer-based models.
Constructors
| Constructor | Summary |
|---|---|
SCNetOptions() |
Initializes a new instance with default values. |
SCNetOptions(SCNetOptions other) |
Initializes a new instance by copying every setting from another instance. |
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 Adam learning rate. |
double WeightDecay { get; set; } |
Gets or sets the optional weight decay for custom optimizers. |
int CompressionDim { get; set; } |
Gets or sets the compression embedding dimension. |
int FeedForwardDim { get; set; } |
Gets or sets the feed-forward expansion dimension. |
int FftSize { get; set; } |
Gets or sets the FFT window size. |
int HopLength { get; set; } |
Gets or sets the hop length between frames. |
int NumAttentionHeads { get; set; } |
Gets or sets the number of attention heads. |
int NumClusters { get; set; } |
Gets or sets the number of compression clusters. |
int NumDecoderBlocks { get; set; } |
Gets or sets the number of decoder blocks. |
int NumEncoderBlocks { get; set; } |
Gets or sets the number of encoder blocks. |
int NumFreqBins { get; set; } |
Gets or sets the number of frequency bins. |
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. |
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. |