Discriminator
Discriminator
Bases: Module
Discriminator for the UnuvNet vocoder.
This class implements a discriminator that consists of a MultiResolutionDiscriminator
and a MultiPeriodDiscriminator
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
model_config |
VocoderModelConfig
|
Model configuration object. |
required |
Attributes:
Name | Type | Description |
---|---|---|
MRD |
MultiResolutionDiscriminator
|
Multi-resolution discriminator instance. |
MPD |
MultiPeriodDiscriminator
|
Multi-period discriminator instance. |
Methods:
Name | Description |
---|---|
forward |
Computes the forward pass of the discriminator. |
Source code in models/vocoder/univnet/discriminator.py
forward(x)
Computes the forward pass of the discriminator.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
x |
Tensor
|
Input tensor of shape [B, C, T]. |
required |
Returns:
Name | Type | Description |
---|---|---|
tuple |
(Tensor, Tensor)
|
Tuple containing the output tensors of the |