AI Media Generation

How do Diffusion Models create high-quality images from noise?

SO Asked by Sophia Martinez · 12-04-2024
0 upvotes 19,875 views 0 comments
The question

I understand how text models work, but Generative AI for images (like Midjourney or Stable Diffusion) confuses me. What is the "Forward Diffusion" and "Reverse Diffusion" process? How does the model "learn" to create a cat from a cloud of random pixels, and what role does the text prompt play in guiding this process?

3 answers

0
K
Answered on 25-07-2024

It’s a process of "Learn to Destroy, then Learn to Reconstruct." In Forward Diffusion, the model takes an image of a cat and gradually adds Gaussian noise until it’s unrecognizable. In Reverse Diffusion, the model is trained to "predict" the noise that was added at each step and subtract it. By starting with pure random noise and following the prompt's guidance, it "cleans" the noise until a structured image emerges.

0
EL
Answered on 05-08-2024

The text prompt acts as a "Conditioning" signal. As the model removes noise, it uses a Transformer-based text encoder (like CLIP) to ensure that the patterns it is "finding" in the noise align with your words. If you type "Space Marine," the model prioritizes finding metallic and galactic patterns during the de-noising steps.

SO 12-08-2025

This is why "Negative Prompts" work. You are telling the model which patterns not to find in the noise as it reconstructs the image.

0
SA
Answered on 20-08-2024

Most modern models use Latent Diffusion. Instead of working on the actual pixels (which is computationally heavy), they work in a compressed "Latent Space." This makes image generation much faster and allows it to run on consumer-grade GPUs.

KE 30-08-2024

This is the genius of Stable Diffusion. By operating in latent space, it democratized high-quality image generation for everyone with a decent graphics card.

Share your thoughts

Your email address will not be published. Required fields are marked (*)

Professional Counselling Session

Still have questions?
Schedule a free counselling session

Our experts are ready to help you with any questions about courses, admissions, or career paths. Get personalized guidance from industry professionals.

Request a Call Back

Search Online

We Accept

We Accept

Follow Us

"PMI®", "PMBOK®", "PMP®", "CAPM®" and "PMI-ACP®" are registered marks of the Project Management Institute, Inc. | "CSM", "CST" are Registered Trade Marks of The Scrum Alliance, USA. | COBIT® is a trademark of ISACA® registered in the United States and other countries.

Book Free Session