espnet2.spk.encoder.ska_tdnn_encoder.SkaTdnnEncoder
espnet2.spk.encoder.ska_tdnn_encoder.SkaTdnnEncoder
class espnet2.spk.encoder.ska_tdnn_encoder.SkaTdnnEncoder(input_size: int, block: str = 'Bottle2neck', ndim: int = 1024, model_scale: int = 8, skablock: str = 'ResBlock', ska_dim: int = 128, output_size: int = 1536, **kwargs)
Bases: AbsEncoder
SKA-TDNN encoder. Extracts frame-level SKA-TDNN embeddings from features.
Paper: S. Mun, J. Jung et al., “Frequency and Multi-Scale Selective Kernel : Attention for Speaker Verification,’ in Proc. IEEE SLT 2022.
- Parameters:
- input_size – input feature dimension.
- block – type of encoder block class to use.
- model_scale – scale value of the Res2Net architecture.
- ndim – dimensionality of the hidden representation.
- output_size – ouptut embedding dimension.
Initializes internal Module state, shared by both nn.Module and ScriptModule.
forward(x)
Defines the computation performed at every call.
Should be overridden by all subclasses.
NOTE
Although the recipe for forward pass needs to be defined within this function, one should call the Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
output_size() → int