espnet2.spk.encoder.rawnet3_encoder.RawNet3Encoder
espnet2.spk.encoder.rawnet3_encoder.RawNet3Encoder
class espnet2.spk.encoder.rawnet3_encoder.RawNet3Encoder(input_size: int, block: str = 'Bottle2neck', model_scale: int = 8, ndim: int = 1024, output_size: int = 1536, **kwargs)
Bases: AbsEncoder
RawNet3 encoder. Extracts frame-level RawNet embeddings from raw waveform.
paper: J. Jung et al., “Pushing the limits of raw waveform speaker : recognition”, in Proc. INTERSPEECH, 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: Tensor)
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