Uploaded July 2022 | Updated September 2026, 1 week ago
β€οΈ Become The AI Epiphany Patreon β€οΈ
patreon.com/theaiepiphany
π¨βπ©βπ§βπ¦ Join our Discord community π¨βπ©βπ§βπ¦
discord.gg/peBrCpheKE
5th video of the ML coding series! In this one I cover OpenAI's GLIDE model from the "GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models" paper.
It directly builds upon the "Diffusion Models Beat GANs on Image Synthesis" paper that I've covered in the previous video of the series. It is also a direct precursor to DALL-E 2!
I explain classifier-free guidance as well as CLIP guidance in this one.
β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬
β Paper: arxiv.org/abs/2112.10741
β GitHub: github.com/openai/glide-text2im
β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬
βοΈ Timetable:
00:00:00 [paper] GLIDE - quick overview
00:03:30 Classifier free guidance explained
00:07:25 CLIP guidance explained
00:10:49 Training details, etc.
00:14:20 [coding] CLIP guidance script
00:26:25 Generating CLIP text target embedding
00:32:32 Reverse process (p_sample_loop)
00:34:35 How is text conditioning implemented
00:43:00 CLIP guidance code
00:46:26 Classifier-free guidance script
00:51:47 Main logic
00:56:35 Showing generated images
00:58:23 Outro
β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬
π° BECOME A PATREON OF THE AI EPIPHANY β€οΈ
If these videos, GitHub projects, and blogs help you,
consider helping me out by supporting me on Patreon!
The AI Epiphany - patreon.com/theaiepiphany
One-time donation - paypal.com/paypalme/theaiepiphany
Huge thank you to these AI Epiphany patreons:
Eli Mahler
Petar VeliΔkoviΔ
β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬
πΌ LinkedIn - linkedin.com/in/aleksagordic
π¦ Twitter - twitter.com/gordic_aleksa
π¨βπ©βπ§βπ¦ Discord - discord.gg/peBrCpheKE
πΊ YouTube - youtube.com/c/TheAIEpiphany
π Medium - gordicaleksa.medium.com
π» GitHub - github.com/gordicaleksa
π’ AI Newsletter - aiepiphany.substack.com
β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬
#glide #diffusion #imagesynthesis
β€οΈ Become The AI Epiphany Patreon β€οΈ
patreon.com/theaiepiphany
π¨βπ©βπ§βπ¦ Join our Discord community π¨βπ©βπ§βπ¦
discord.gg/peBrCpheKE
5th video of the ML coding series! In this one I cover OpenAI's GLIDE model from the "GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models" paper.
It directly builds upon the "Diffusion Models Beat GANs on Image Synthesis" paper that I've covered in the previous video of the series. It is also a direct precursor to DALL-E 2!
I explain classifier-free guidance as well as CLIP guidance in this one.
β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬
β Paper: arxiv.org/abs/2112.10741
β GitHub: github.com/openai/glide-text2im
β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬
βοΈ Timetable:
00:00:00 [paper] GLIDE - quick overview
00:03:30 Classifier free guidance explained
00:07:25 CLIP guidance explained
00:10:49 Training details, etc.
00:14:20 [coding] CLIP guidance script
00:26:25 Generating CLIP text target embedding
00:32:32 Reverse process (p_sample_loop)
00:34:35 How is text conditioning implemented
00:43:00 CLIP guidance code
00:46:26 Classifier-free guidance script
00:51:47 Main logic
00:56:35 Showing generated images
00:58:23 Outro
β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬
π° BECOME A PATREON OF THE AI EPIPHANY β€οΈ
If these videos, GitHub projects, and blogs help you,
consider helping me out by supporting me on Patreon!
The AI Epiphany - patreon.com/theaiepiphany
One-time donation - paypal.com/paypalme/theaiepiphany
Huge thank you to these AI Epiphany patreons:
Eli Mahler
Petar VeliΔkoviΔ
β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬
πΌ LinkedIn - linkedin.com/in/aleksagordic
π¦ Twitter - twitter.com/gordic_aleksa
π¨βπ©βπ§βπ¦ Discord - discord.gg/peBrCpheKE
πΊ YouTube - youtube.com/c/TheAIEpiphany
π Medium - gordicaleksa.medium.com
π» GitHub - github.com/gordicaleksa
π’ AI Newsletter - aiepiphany.substack.com
β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬
#glide #diffusion #imagesynthesis










