GAN_CIFAR10_torch module
- class GAN_CIFAR10_torch.Discriminator[source]
Bases:
ModuleDiscriminator (or critic) model for GAN.
- class GAN_CIFAR10_torch.DiscriminatorBlock(in_chans, out_chans, downsample=False, first=False)[source]
Bases:
ModuleResNet-style block for the discriminator model, with optional downsampling.
- Parameters:
in_chans (int) – Number of input channels.
out_chans (int) – Number of output channels.
downsample (bool) – Whether to apply 2x downsampling.
first (bool) – Whether this is the first block in the discriminator.
- class GAN_CIFAR10_torch.Discriminator_cond[source]
Bases:
ModuleConditional Discriminator (or critic) model for conditional GAN.
- class GAN_CIFAR10_torch.Generator[source]
Bases:
ModuleGenerator model that consists of linear layers followed by multiple generator blocks.
- class GAN_CIFAR10_torch.GeneratorBlock(in_chans, out_chans, upsample=False)[source]
Bases:
ModuleResNet-style block for the generator model, with optional upsampling.
- Parameters:
in_chans (int) – Number of input channels.
out_chans (int) – Number of output channels.
upsample (bool) – Whether to apply 2x upsampling.