espnet3.utils.config_utils.load_default_config
espnet3.utils.config_utils.load_default_config
espnet3.utils.config_utils.load_default_config(config_name: str, default_package: str)
Load a packaged default config without resolving interpolations.
This helper reads a default config bundled in an ESPnet recipe package. The default package is typically an egs3 recipe package such as egs3.TEMPLATE.asr, but any installed recipe package with a conf/ directory can be used as the source of default values. The loaded config is intended to be merged later with a user-provided config via load_and_merge_config().
Example
If default_package is egs3.TEMPLATE.asr and config_name is training.yaml, this loads:
egs3/TEMPLATE/asr/conf/training.yaml
If you want to base a new recipe on an existing one, you can also point default_package to that recipe package. For example, using egs3.librispeech.asr with training.yaml would load:
egs3/librispeech/asr/conf/training.yaml
- Parameters:
- config_name (str) – Config filename under conf/, such as training.yaml, inference.yaml, or metrics.yaml.
- default_package (str) – Python package that contains the default recipe resources. For example, egs3.TEMPLATE.asr points to files under egs3/TEMPLATE/asr/. Other installed recipe packages can also be used as long as they provide conf/<config_name>.
- Returns: The default config loaded from package resources, with interpolation resolution deferred so it can be merged with user overrides first.
- Return type: OmegaConf.DictConfig
