Free module
Generative models from scratch
Learn generative AI from scratch in NumPy: autoencoders and VAEs, GANs, diffusion models, generating images and audio, watermarks and C2PA.
The lessons
Each lesson is free and interactive. Press Start lab to run its commands in a live lab and to sit its quizzes and tasks, with no account needed.
1 · Container lab
Generative and discriminative models
I can explain how a generative model differs from a discriminative one by sampling from a distribution I fitted.
Read the lesson2 · Container lab
Autoencoders and variational autoencoders
I can make an autoencoder generate new data by sampling from its code space.
Read the lesson3 · Container lab
Generative adversarial networks (GANs)
I can read a toy GAN's training numbers to judge whether its fakes match the data.
Read the lesson4 · Container lab
How diffusion models work
I can add noise to data step by step and remove it again to generate new points.
Read the lesson5 · Container lab
Generating images, audio and video
I can explain how a generator turns a text prompt into an image, a sound or a video.
Read the lesson6 · Container lab
Watermarks, content credentials and deepfakes
I can judge how far a watermark, a content credential or a deepfake detector can be trusted.
Read the lesson
Worked in a real lab
Every lesson of this module is worked in a lab started for you alone. The labs it uses:
Teaching a class? Set this module for your students with a teacher guide, marked assignments and a lab for every student.