selfclean_audio.config#

Members

LazyCall

Wrap a callable so that when it's called, the call will not be executed, but returns a dict that describes the call.

LazyConfig

Provide methods to save, load, and overrides an omegaconf config object which may contain definition of lazily-constructed objects.

LazyFactory

Provides a clean interface to easily construct essential objects from input lazy configs (omegaconf): dataloader, model.

TemplateType

Enum for different experiment template types.

callable_to_str

class selfclean_audio.config.LazyCall(target: Callable)[source]#

Wrap a callable so that when it’s called, the call will not be executed, but returns a dict that describes the call. Only supports keyword arguments.

class selfclean_audio.config.LazyConfig[source]#

Provide methods to save, load, and overrides an omegaconf config object which may contain definition of lazily-constructed objects.

static load(filename: str | Path) DictConfig | ListConfig[source]#

Load a config file (either Python or YAML).

Parameters:

filename – absolute path or relative path w.r.t. current directory.

static save(cfg: DictConfig, filename: str) None[source]#

Save a config object as YAML file. (same as OmegaConf.save()).

static apply_overrides(cfg: DictConfig, overrides: list[str]) DictConfig | ListConfig[source]#

Return a new config by applying overrides (provided as dotlist). See https://hydra.cc/docs/advanced/override_grammar/basic/ for dotlist syntax.

class selfclean_audio.config.LazyFactory[source]#

Provides a clean interface to easily construct essential objects from input lazy configs (omegaconf): dataloader, model.

class selfclean_audio.config.TemplateType(value)[source]#

Enum for different experiment template types.