espnet3.systems.base.inference.inference
Less than 1 minute
espnet3.systems.base.inference.inference
espnet3.systems.base.inference.inference(config: DictConfig)
Run inference over all configured test sets and write SCP files.
- Parameters:config – Hydra/omegaconf configuration with dataset and inference settings.
- Returns: None
- Raises:
- RuntimeError – If required inference config fields are missing.
- TypeError – If the inference runner does not expose expected attributes.
- AssertionError – If no test sets exist or duplicate names are present.
Example
>>> from omegaconf import OmegaConf
>>> cfg = OmegaConf.load("conf/infer.yaml")
>>> inference(cfg) # writes scp files under cfg.infer_dir