espnet2.gan_svs.visinger2.visinger2_vocoder.Generator_Noise
Less than 1 minute
espnet2.gan_svs.visinger2.visinger2_vocoder.Generator_Noise
class espnet2.gan_svs.visinger2.visinger2_vocoder.Generator_Noise(win_length: int = 1024, hop_length: int = 256, n_fft: int = 1024, hidden_channels: int = 192, kernel_size: int = 3, padding: int = 1, dropout_rate: float = 0.1)
Bases: Module
Initialize the Generator_Noise module.
- Parameters:
- win_length (int , optional) – Window length. If None, set to n_fft.
- hop_length (int) – Hop length.
- n_fft (int) – FFT size.
- hidden_channels (int) – Number of hidden representation channels.
- kernel_size (int) – Size of the convolutional kernel.
- padding (int) – Size of the padding applied to the input.
- dropout_rate (float) – Dropout rate.
forward(x, mask)
Forward Generator Noise.
- Parameters:
- x (Tensor) – Input tensor (B, hidden_channels, T).
- mask (Tensor) – Mask tensor (B, 1, T).
- Returns: Output tensor (B, 1, T * hop_size).
- Return type: Tensor