speechbrain.lobes.models.segan_model moduleο
This file contains two PyTorch modules which together consist of the SEGAN model architecture (based on the paper: Pascual et al. https://arxiv.org/pdf/1703.09452.pdf). Modification of the initialization parameters allows the change of the model described in the class project, such as turning the generator to a VAE, or removing the latent variable concatenation.
Loss functions for training SEGAN are also defined in this file.
- Authors
Francis Carter 2021
Summaryο
Classes:
CNN discriminator of SEGAN |
|
CNN Autoencoder model to clean speech signals. |
Functions:
Calculates the loss of the discriminator when the inputs are clean |
|
Calculates the loss of the discriminator when the inputs are not clean |
|
Calculates the loss of the generator given the discriminator outputs |
Referenceο
- class speechbrain.lobes.models.segan_model.Generator(kernel_size, latent_vae, z_prob)[source]ο
Bases:
Module
CNN Autoencoder model to clean speech signals.
- Parameters:
- class speechbrain.lobes.models.segan_model.Discriminator(kernel_size)[source]ο
Bases:
Module
CNN discriminator of SEGAN
- Parameters:
kernel_size (int) β Size of the convolutional kernel.
- speechbrain.lobes.models.segan_model.d1_loss(d_outputs, reduction='mean')[source]ο
Calculates the loss of the discriminator when the inputs are clean