Multi Period Discriminator
MultiPeriodDiscriminator
Bases: Module
MultiPeriodDiscriminator is a class that implements a multi-period discriminator network for the UnivNet vocoder.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
model_config |
VocoderModelConfig
|
The configuration object for the UnivNet vocoder model. |
required |
Source code in models/vocoder/univnet/multi_period_discriminator.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
|
forward(x)
Forward pass of the multi-period discriminator network.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
x |
Tensor
|
The input tensor of shape (batch_size, channels, time_steps). |
required |
Returns:
Name | Type | Description |
---|---|---|
list |
list[Tensor]
|
A list of output tensors from each discriminator network. |
Source code in models/vocoder/univnet/multi_period_discriminator.py
30 31 32 33 34 35 36 37 38 39 |
|