0
0
PyTorchml~5 mins

GAN training loop in PyTorch - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does GAN stand for and what are its two main parts?
GAN stands for Generative Adversarial Network. It has two main parts: the Generator, which creates fake data, and the Discriminator, which tries to tell real data from fake data.
Click to reveal answer
beginner
Why do we train the Discriminator and Generator alternately in a GAN training loop?
We train the Discriminator to better tell real from fake data, and then train the Generator to fool the Discriminator. Alternating helps both improve together.
Click to reveal answer
beginner
In a GAN training loop, what is the purpose of the noise vector input to the Generator?
The noise vector is random input that the Generator uses to create diverse fake data samples.
Click to reveal answer
intermediate
What loss function is commonly used to train the Discriminator in a GAN?
Binary Cross-Entropy loss is commonly used to train the Discriminator to classify real vs fake data.
Click to reveal answer
beginner
What is the main goal of the Generator during GAN training?
The Generator aims to produce fake data that the Discriminator classifies as real, effectively 'fooling' it.
Click to reveal answer
In a GAN training loop, what do we update first?
ANeither, just evaluate
BGenerator weights
CBoth at the same time
DDiscriminator weights
What input does the Generator receive to create fake data?
ARandom noise vector
BLabels of real or fake
CDiscriminator output
DReal data samples
Which loss function is typically used for training the Discriminator in GANs?
AMean Squared Error
BCategorical Cross-Entropy
CBinary Cross-Entropy
DHinge Loss
What does the Generator try to maximize during training?
ADiscriminator's ability to detect fake data
BDiscriminator's error on fake data
CLoss of the Discriminator on real data
DDistance between real and fake data
Why do we detach the fake data when training the Discriminator?
ATo prevent gradients flowing back to the Generator
BTo speed up training
CTo save memory
DTo normalize the data
Describe the steps of a typical GAN training loop.
Think about how the Generator and Discriminator take turns learning.
You got /7 concepts.
    Explain why alternating training between Generator and Discriminator is important in GANs.
    Consider the competition between the two parts.
    You got /4 concepts.