Appearance
modules.audio.detection.ai
Classes Diagram
Module Dependencies
Classes
ModelProxy
Proxy class responsible for loading and interfacing with the AI model, allowing for dynamic loading of different models based on configuration.
Constructor
ModelProxy(self, model_name: str = None)
Members
_enable
model_name
_module
_model
Methods
infer(self, audios: list[GstChannel]) → tuple[np.ndarray, np.ndarray]
Call the infer method of the loaded model to get predictions for the given audio samples.