espnet3.systems.esp2_enh.task.EnhancementTask
espnet3.systems.esp2_enh.task.EnhancementTask
class espnet3.systems.esp2_enh.task.EnhancementTask
Bases: AbsTask
Enhancement task definition for argument wiring and model construction.
classmethod add_task_arguments(parser: ArgumentParser)
Add enhancement-specific task arguments to the parser.
classmethod build_collate_fn(args: Namespace, train: bool) → Callable[[Collection[Tuple[str, Dict[str, ndarray]]]], Tuple[List[str], Dict[str, Tensor]]]
Build the collate function for enhancement batches.
classmethod build_iter_factory(args: Namespace, distributed_option: DistributedOption, mode: str, kwargs: dict = None) → AbsIterFactory
Build the iterator factory, adjusting fold length for dynamic mixing.
classmethod build_model(args: Namespace) → ESPnetEnhancementModel
Build the ESPnet enhancement model from parsed arguments.
classmethod build_preprocess_fn(args: Namespace, train: bool) → Callable[[str, Dict[str, array]], Dict[str, ndarray]] | None
Build the preprocessing function for enhancement inputs.
class_choices_list : List[ClassChoices] = [<espnet2.train.class_choices.ClassChoices object>, <espnet2.train.class_choices.ClassChoices object>, <espnet2.train.class_choices.ClassChoices object>, <espnet2.train.class_choices.ClassChoices object>, <espnet2.train.class_choices.ClassChoices object>, <espnet2.train.class_choices.ClassChoices object>]
num_optimizers : int = 1
classmethod optional_data_names(train: bool = True, inference: bool = False) → Tuple[str, ...]
Return optional data field names for the task.
classmethod required_data_names(train: bool = True, inference: bool = False) → Tuple[str, ...]
Return required data field names for the task.
trainer
alias of Trainer
