Lesson 10: Deep Learning Foundations to Stable Diffusion, 2022

  Рет қаралды 58,581

Jeremy Howard

Jeremy Howard

Күн бұрын

(All lesson resources are available at course.fast.ai.) This lesson creates a complete Diffusers pipeline from the underlying components: the VAE, unet, scheduler, and tokeniser. By putting them together manually, this gives you the flexibility to fully customise every aspect of the inference process.
We also discuss three important new papers that have been released in the last week, which improve inference performance by over 10x, and allow any photo to be “edited” by just describing what the new picture should show.
The second half of the lesson begins the “from the foundations” stage of the course, developing a basic matrix class and random number generator from scratch, as well as discussing the use of iterators in Python.
You can discuss this lesson, and access links to all notebooks and resources from it, at this forum topic: forums.fast.ai/t/lesson-10-pa...
Additional Links:
- Progressive Distillation for Fast Sampling of Diffusion Models - arxiv.org/abs/2202.00512
- On Distillation of Guided Diffusion Models - arxiv.org/abs/2210.03142
- Imagic: Text-Based Real Image Editing with Diffusion Models - arxiv.org/abs/2210.09276
0:00 - Introduction
0:35 - Showing student’s work over the past week.
6:04 - Recap Lesson 9
12:55 - Explaining “Progressive Distillation for Fast Sampling of Diffusion Models” & “On Distillation of Guided Diffusion Models”
26:53 - Explaining “Imagic: Text-Based Real Image Editing with Diffusion Models”
33:53 - Stable diffusion pipeline code walkthrough
41:19 - Scaling random noise to ensure variance
50:21 - Recommended homework for the week
53:42 - What are the foundations of stable diffusion? Notebook deep dive
1:06:30 - Numpy arrays and PyTorch Tensors from scratch
1:28:28 - History of tensor programming
1:37:00 - Random numbers from scratch
1:42:41 - Important tip on random numbers via process forking
Thanks to fmussari for the transcript, and to Raymond-Wu (on forums.fast.ai) for the timestamps.

Пікірлер: 21
@fabriai
@fabriai Жыл бұрын
Jeremy Howard, what you're doing to help people understand these models is priceless. Thank you, thank you, thank you. God bless you.
@tokosby9700
@tokosby9700 Жыл бұрын
Nnnn
@sunderrajan6172
@sunderrajan6172 Жыл бұрын
Great Lectures as always Jeremy! Its been a while since Lesson 10, I am eagerly waiting for remaining lessons.Thanks!
@jordankuzmanovik5297
@jordankuzmanovik5297 Жыл бұрын
Any news?
@KellyNicholes
@KellyNicholes Жыл бұрын
I haven't delved into the juicy bits of python for over ten years now, and watching this was making me feel "home" again. I'm so thirsty for more! Added bonus: You learn how to create your own Stable Diffusion model from scratch. I can hardly wait.
@sunderrajan6172
@sunderrajan6172 Жыл бұрын
Remaining lessons have been posted in the last two weeks. I am really excited and the lessons are awesome as always from Jeremy.
@timandersen8030
@timandersen8030 Жыл бұрын
Thanks for the video lectures! It's really cool that you start out introducing an awesome application first (i.e. Stable Diffusion) and how it works before teaching the foundation and starting back from there.
@howardjeremyp
@howardjeremyp Жыл бұрын
Glad you like them!
@tsenguun
@tsenguun Жыл бұрын
Looking forward to the next lesson
@ItzGanked
@ItzGanked Ай бұрын
jupyter also has documentation for python and other libraries inside the notebook if you go to help python reference. Keeps you inside of the notebook instead of searching the web and will provide docs for the version of python you are using.
@jessedeng3300
@jessedeng3300 Жыл бұрын
For the clip image text embeddings would it be possible to use a pretrained language model to first get the text embeddings and then use those as the targets for image embeddings in a traditional optimisation loop? Also thank you for these lessons I am deeply grateful
@VaIhalIa
@VaIhalIa Жыл бұрын
Love the videos.
@djcardwell
@djcardwell Жыл бұрын
Jeremy, where is the best place to stay updated on papers? I'd like to read all the trending papers as they come out.
@tumadrep00
@tumadrep00 Жыл бұрын
Could a teacher/student approach be used in the imagic process to generate video?
@CoolDude911
@CoolDude911 Жыл бұрын
It could be that the Markov way of modelling the problem stops you getting into local optimums or images which are not really part of the target distribution. The model has to "change course" between iterations. I remember generating a picture of a seal with a head coming out of each end of the seal. At some point the model was not sure about where the head of the seal was but had to commit to one decision or another.
@vivekakaviv
@vivekakaviv 5 ай бұрын
Thank you.
@heejuneAhn
@heejuneAhn 8 ай бұрын
Do we use same Random noise in each step or sampling every time in each step.
@tsenguun
@tsenguun Жыл бұрын
Still waiting for the full course
@bilalch83
@bilalch83 Ай бұрын
Sensei Jeremy Howard
@satirthapaulshyam7769
@satirthapaulshyam7769 Жыл бұрын
41:00
@mattkkma
@mattkkma 11 ай бұрын
For those looking for Jonathan Whitaker paper walkthrough kzbin.info/www/bejne/kInYfGl_h6-fpM0
Lesson 11 2022: Deep Learning Foundations to Stable Diffusion
1:48:17
Jeremy Howard
Рет қаралды 21 М.
Универ. 13 лет спустя - ВСЕ СЕРИИ ПОДРЯД
9:07:11
Комедии 2023
Рет қаралды 6 МЛН
small vs big hoop #tiktok
00:12
Анастасия Тарасова
Рет қаралды 21 МЛН
Diffusion models explained in 4-difficulty levels
7:08
AssemblyAI
Рет қаралды 116 М.
Diffusion Models | Paper Explanation | Math Explained
33:27
Outlier
Рет қаралды 229 М.
Stable Diffusion in Code (AI Image Generation) - Computerphile
16:56
Computerphile
Рет қаралды 286 М.
Lesson 8 - Practical Deep Learning for Coders 2022
1:36:55
Jeremy Howard
Рет қаралды 33 М.
Diffusion Models Explained with Math From Scratch
31:21
Computer Vision with Hüseyin Özdemir
Рет қаралды 1,4 М.
Diffusion models from scratch in PyTorch
30:54
DeepFindr
Рет қаралды 233 М.
The U-Net (actually) explained in 10 minutes
10:31
rupert ai
Рет қаралды 83 М.
How I Understand Diffusion Models
17:39
Jia-Bin Huang
Рет қаралды 22 М.
Generative AI in a Nutshell - how to survive and thrive in the age of AI
17:57
Универ. 13 лет спустя - ВСЕ СЕРИИ ПОДРЯД
9:07:11
Комедии 2023
Рет қаралды 6 МЛН