Save this video free

But how do AI images and videos actually work? | Guest video by Welch Labs

3Blue1Brown · 37:20 · Watch on YouTube

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Stephen Welsh explains diffusion models for AI image and video generation, detailing how they work by reversing a process of adding noise to data, akin to running Brownian motion backward. He covers OpenAI's CLIP for creating a shared text-image embedding space, the DDPM algorithm's surprising need for noise during generation, and the development of DDIM and classifier-free guidance to improve generation speed and prompt adherence, culminating in models like DALL-E 2 and Stable Diffusion.

Key takeaways

Chapters

0:00 Introduction to Diffusion Models and WAN 2.1
3:46 CLIP: Bridging Text and Images
13:40 DDPM: The Diffusion Process and Noise Addition
19:15 Visualizing Diffusion: Time-Varying Vector Fields
28:58 The Role of Noise in Generation Quality
36:53 DDIM: Deterministic Image Generation

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:03 Over the last few years, AI systems have become astonishingly good at turning text props into videos. At the core of how these models operate is a deep connection to physics. This generation of image and video models works using a process known as diffusion, which is remarkably equivalent to the Brownian motion we see as particles diffuse, but with time run backwards, and in high-dimensional space. As we'll see, this connection to physics is much more than a curiosity. We get real algorithms out of the physics that we can use to generate images and videos. And this perspective will also give us some really nice intuitions for how these models work in practice. But before we dive into this connection, let's get hands-on with a real diffusion model. While the best models are closed source, there are some compelling open source models. This video of an astronaut was generated by an open source model called WAN 2.1.

0:57 We can add to our prompt and have our astronaut hold a flag, hold a laptop, or hold a meeting. If we cut down our prompt to just an astronaut, we get this. And if we cut down our prompt to nothing, we interestingly still get this video of a woman. If we dig into our WAN model's source code, we'll find that the video generation process begins with this call to a random number generator. Creating a video where the pixel intensity values are chosen randomly. Here's what it looks like. From here, this pure noise video is passed into a transformer. This is the same type of AI model used by large language models, like ChatGPT. But instead of outputting text, this transformer outputs another video that now looks like this. Still mostly noise, but with some hints of structure.

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, 3Blue1Brown.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.