Multi Resolution Discriminator
MultiResolutionDiscriminator
Bases: Module
Multi-resolution discriminator for the UnivNet vocoder.
This class implements a multi-resolution discriminator that consists of multiple DiscriminatorR instances, each operating at a different resolution.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
model_config |
VocoderModelConfig
|
Model configuration object. |
required |
Attributes:
Name | Type | Description |
---|---|---|
resolutions |
list
|
List of resolutions for each DiscriminatorR instance. |
discriminators |
ModuleList
|
List of DiscriminatorR instances. |
Methods:
Name | Description |
---|---|
forward |
Computes the forward pass of the multi-resolution discriminator. |
Source code in models/vocoder/univnet/multi_resolution_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 42 43 44 45 46 47 48 49 50 |
|
forward(x)
Computes the forward pass of the multi-resolution discriminator.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
x |
Tensor
|
Input tensor of shape [B, C, T]. |
required |
Returns:
Name | Type | Description |
---|---|---|
list |
list[tuple[Tensor, Tensor]]
|
List of tuples containing the intermediate feature maps and the output scores for each |
Source code in models/vocoder/univnet/multi_resolution_discriminator.py
41 42 43 44 45 46 47 48 49 50 |
|