How diffusion models work - explanation and code!

Umar Jamil · Beginner ·🧬 Deep Learning ·2y ago

About this lesson

A gentle introduction to diffusion models without the math derivations, but rather, a focus on the concepts that define the diffusion models as described in the DDPM paper. Full code and PDF slides available at: https://github.com/hkproj/pytorch-ddpm Chapters 00:00 - Introduction 00:46 - Generative models 03:51 - Latent space 07:35 - Forward and reverse process 09:00 - Mathematical definitions 13:00 - Training loop 15:05 - Sampling loop 16:36 - U-Net 18:31 - Training code 19:28 - Sampling code 20:34 - Full code

Original Description

A gentle introduction to diffusion models without the math derivations, but rather, a focus on the concepts that define the diffusion models as described in the DDPM paper. Full code and PDF slides available at: https://github.com/hkproj/pytorch-ddpm Chapters 00:00 - Introduction 00:46 - Generative models 03:51 - Latent space 07:35 - Forward and reverse process 09:00 - Mathematical definitions 13:00 - Training loop 15:05 - Sampling loop 16:36 - U-Net 18:31 - Training code 19:28 - Sampling code 20:34 - Full code
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Related AI Lessons

Want to get started with deep learning
Get started with deep learning by leveraging resources like Andrew Karpathy's playlist and frameworks such as TensorFlow or PyTorch
Reddit r/deeplearning
Building a Deepfake Detector From Scratch — What Nobody Tells You
Learn to build a deepfake detector from scratch and understand the challenges involved in detecting AI-generated fake media
Medium · Deep Learning
Unfolding the Meandering Path: High-Dimensional Invariance and the Flat 2D Plane of Neural…
Learn about high-dimensional invariance and its relation to the flat 2D plane of neural networks, and how to apply these concepts to improve model performance
Medium · Deep Learning
Implementing Neural Style Transfer from Scratch: The Project That Started It All
Learn to implement Neural Style Transfer from scratch and understand its significance in deep learning
Medium · Deep Learning

Chapters (11)

Introduction
0:46 Generative models
3:51 Latent space
7:35 Forward and reverse process
9:00 Mathematical definitions
13:00 Training loop
15:05 Sampling loop
16:36 U-Net
18:31 Training code
19:28 Sampling code
20:34 Full code
Up next
Image Classification with ml5.js
The Coding Train
Watch →