AI & ML Atlas
Deep LearningarchitectureAnimated walkthrough
Conditional GAN
A GAN that is told what to generate, such as a given digit or class.
The idea
A label (or any condition) is given to both the generator and the discriminator. The generator learns to produce a sample of the requested class, and the discriminator judges whether the sample is real and matches the label. This gives control over the output.
Watch it run
The pipeline lights up one step at a time. Use the controls to pause or step through it.
- 1Pick a condition y (for example the digit 7).
- 2Feed noise plus y to the generator.
- 3Feed the sample and y to the discriminator.
- 4Train both as in a normal GAN.
1/4
Step by step
- 1Pick a condition y (for example the digit 7).
- 2Feed noise plus y to the generator.
- 3Feed the sample and y to the discriminator.
- 4Train both as in a normal GAN.
Where it is used
Class-specific image generation, text-to-image ancestors.
Watch out for
Still inherits GAN instability.