liveBook · Manning

Wasserstein GAN

A Wasserstein GAN is a generative adversarial network that uses a critic and a Wasserstein-based objective to compare generated and real-data distributions.

How 2 Manning books explain it

Learn Generative AI with PyTorch

A GAN variant that uses the Wasserstein distance as its training objective to improve stability and provide a more informative critic score.

How it is used
Stabilizes GAN training by replacing binary cross-entropy with Wasserstein distance and adding gradient-based constraint enforcement.
How deep it goes
Explains the critic, Lipschitz requirement, interpolation, gradient calculation, and penalty, without deriving the distance mathematically.
Examples
Demonstrates conditional face generation with or without eyeglasses using labeled noise, interpolated images, and critic scores.
What you can do after
Build a conditional WGAN with gradient penalty for labeled face generation and calculate Wasserstein loss and gradient penalty.

Read how Learn Generative AI with PyTorch explains Wasserstein GAN →

Inside Deep Learning: Math, Algorithms, Models

A GAN variant that uses a Wasserstein-based objective to improve training behavior and stability.

How it is used
Reduces mode collapse and improves GAN training behavior when the original adversarial formulation is difficult to train.
How deep it goes
Defines discriminator and generator losses and removes the sigmoid, but defers the mathematics deriving the Wasserstein improvement.
Examples
Uses the discriminator score D(G(z)) and generator loss −D(G(z)) as the central implementation example.
What you can do after
Apply WGAN losses and discriminator-output changes while understanding their role in reducing training failures.

Read how Inside Deep Learning: Math, Algorithms, Models explains Wasserstein GAN →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.