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
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 40 41 |
|
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 |
Source code in models/vocoder/univnet/discriminator.py
32 33 34 35 36 37 38 39 40 41 |
|