Generative AI · Beginner level

Beginner level · Module 6: Introduction to Image Generation · Lesson 1 of 3

How Text-to-Image Generation Works

A plain-language explanation of diffusion models, which start from noise and gradually form an image that matches a text prompt.

In this lesson you will

  • Explain diffusion in plain language
  • Explain why images vary

Key concepts

diffusionnoise to imagetext guidancerandom seedvariation

The lesson

Most image generators use diffusion: they start from random noise and remove it step by step, guided by the text prompt, until an image appears. Each run starts from different noise, so results vary.

The model learned from very large collections of images with captions. It reproduces common styles and subjects well, and may portray places and people outside its training data inaccurately or stereotypically.

Generated images may also contain visible errors: unreadable text, strange hands, wrong objects or details that do not exist locally.

Step by step

  1. View the instructor's offline gallery of generated images.
  2. Mark errors in each image.
  3. Note any stereotypes or local inaccuracies.
  4. Explain diffusion to a partner.

Practice activity

Annotate six generated images for errors and local accuracy.

Expected result: Accurate annotations that identify errors and stereotypes.

Check your understanding

  1. How does a diffusion model create an image?

    Show answer

    It starts from noise and gradually removes it, guided by the prompt.

  2. Why may generated images misrepresent local places?

    Show answer

    The model learned mostly from images of other places.

Further learning

Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.