Towards AI

The leading AI community and content platform focused on making AI accessible to all. Check out our new course platform: https://academy.towardsai.net/courses/beginner-to-advanced-llm-dev

Follow publication

Latent Diffusion Explained Simply (with Pokémon)

Leonardo Castorina
Towards AI
Published in
8 min readSep 16, 2022

--

Image generated using stable diffusion with the prompt “a photograph of an astronaut riding a horse”

“If you can’t explain it simply, you don’t understand it well enough”

Text to Image

Results

Prompt: “a pikachu surfing in the starry night painting”
Prompt: “a pikachu surfing in the Canary Islands”
Sand Dunes in Gran Canaria — Photo by Bryan Li https://bryanli.io

How it works

Conditioning step encoded by tau_theta to condition the generation process. Image from https://arxiv.org/abs/2112.10752

Image to Image

Results

Doodle input.
Generated images with settings –strength 0.8 –n_iter 30 and prompt “A fire type pokemon spitting blue fire”
Static samples from the GIF above.

Inpainting

Results

Input the image and mask on the left. The generated image on the right.
Zoom in from the previous picture
Input the image and mask on the left. The generated image on the right.

How it works

Other Uses

Image from the original paper https://arxiv.org/abs/2112.10752
Image from the original paper https://arxiv.org/abs/2112.10752

Limitations & Ethical Considerations

☕️ Support My Work!

Conclusion

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Published in Towards AI

The leading AI community and content platform focused on making AI accessible to all. Check out our new course platform: https://academy.towardsai.net/courses/beginner-to-advanced-llm-dev

Written by Leonardo Castorina

Science enthusiast, protein designer. PhD in AI.