GenAI Basics · Question 21 · Medium

How do diffusion models, widely used for text-to-image generation, generate an image?

  1. They retrieve the closest matching image from a database
  2. They paste together pieces of training images
  3. They start from random noise and repeatedly remove noise, step by step, guided by the text prompt
  4. They draw the image one pixel at a time using fixed rules
Answer and explanation

Answer: C. They start from random noise and repeatedly remove noise, step by step, guided by the text prompt

Explanation: Diffusion models learn to reverse a gradual noising process. At generation time they begin with pure noise and denoise it over many steps, conditioned on the prompt.

Previous: A model that can accept both an image and a text question about that image… · Next: What does top-p (nucleus) sampling do when choosing the next token?

Practise genai basics

Try a fresh set of genai basics questions with an explanation after every answer, free and without signing up: GenAI Basics practice. Or sit a full placement mock test.

More genai basics questions

More technical & programming practice

Pseudo-code · C Programming · Java · Python · Data Structures · Algorithms · Object-Oriented Programming · DBMS

LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge