internalsGet Pro

Module 10 · Lesson 12 of 12Pro

Generative models: VAEs, GANs and diffusion

Level
Advanced
Topic
Deep learning architectures
Reading time
18 min

When you finish this page you can

  1. Explain why an autoencoder’s decoder can’t make new images from random codes, and how a VAE’s KL term fixes it.
  2. Train a small VAE on Fashion-MNIST in PyTorch on a laptop CPU and sample new images from it.
  3. Describe how a GAN and a diffusion model each learn to generate, and the failure each one is prone to.
  4. Choose between the three families, and decide when generated images should train a classifier.
  1. Entropy and cross-entropy: measuring surprise17 min
  2. Building a neural network in PyTorch14 min
  3. Self-supervised learning: autoencoders to contrastive18 min

Random codes come out as grey smudges

is the online store this course uses as its example. Its photo classifier from Design: a classifier for product photos suggests a category for each new listing. Now Kartly is opening a new category, ethnic footwear, and sellers have uploaded only 300 photos of it.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan