espnet2.s2t.preprocessor_conf.train_preprocessor_conf
Less than 1 minute
espnet2.s2t.preprocessor_conf.train_preprocessor_conf
espnet2.s2t.preprocessor_conf.train_preprocessor_conf(task: Type[AbsTask], args: Namespace) → Dict[str, Any]
The preprocessor’s arguments as training used them, defaults included.
A training config stores only the arguments that were set, so one that left fs at the preprocessor’s default - the OWSM-CTC configs do - has no fs to read. Filling the gaps from the signature of the class that was trained with gives the values it actually ran with, rather than a second copy of its defaults at every place that reads them.
- Parameters:
- task – the task that trained the checkpoint, whose preprocessor choice names the class.
- args – the training arguments read back from its config.
- Returns: The preprocessor’s arguments; the ones the config sets take precedence over the class defaults.
