AudioLDMClassifierOptions
Options & Configuration ยท AiDotNet.Audio.Classification
Configuration options for the AudioLDM Classifier model.
Inheritance: ModelOptions โ AudioLDMClassifierOptions
For Beginners
AudioLDM was originally built to generate audio from text, but it turns out the internal features it learned are also great for recognizing audio. This classifier uses those learned features to identify sounds, similar to how image generation models can also be used for image recognition.
How It Works
AudioLDM Classifier (Liu et al., 2023) repurposes the latent representations from the AudioLDM diffusion model for audio classification. By extracting intermediate features from the AudioLDM U-Net, it achieves strong classification performance by leveraging the rich audio representations learned during generative pre-training.
Constructors
| Constructor | Summary |
|---|---|
AudioLDMClassifierOptions() |
Properties
| Property | Summary |
|---|---|
OnnxModelOptions OnnxOptions { get; set; } |
Gets or sets the ONNX runtime options. |
double DetectionWindowSize { get; set; } |
Gets or sets the window size in seconds for detection. |
double DropoutRate { get; set; } |
Gets or sets the dropout rate. |
double LearningRate { get; set; } |
Gets or sets the learning rate. |
double Threshold { get; set; } |
Gets or sets the confidence threshold for event detection. |
double WindowOverlap { get; set; } |
Gets or sets the window overlap ratio (0-1). |
int ClassifierDim { get; set; } |
Gets or sets the classifier hidden dimension. |
int FMax { get; set; } |
Gets or sets the maximum frequency for mel filterbank. |
int FMin { get; set; } |
Gets or sets the minimum frequency for mel filterbank. |
int FftSize { get; set; } |
Gets or sets the FFT window size. |
int HopLength { get; set; } |
Gets or sets the hop length. |
int LatentDim { get; set; } |
Gets or sets the latent dimension from AudioLDM. |
int NumClassifierLayers { get; set; } |
Gets or sets the number of classifier layers. |
int NumMels { get; set; } |
Gets or sets the number of mel filterbank channels. |
int SampleRate { get; set; } |
Gets or sets the audio sample rate in Hz. |
string ModelPath { get; set; } |
Gets or sets the path to the ONNX model file. |
string Variant { get; set; } |
Gets or sets the model variant. |
string[] CustomLabels { get; set; } |
Gets or sets custom event labels. |