GenAI Basics · Question 21 · Medium
How do diffusion models, widely used for text-to-image generation, generate an image?
- They retrieve the closest matching image from a database
- They paste together pieces of training images
- They start from random noise and repeatedly remove noise, step by step, guided by the text prompt
- 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
- In the model family name GPT, what does GPT stand for?
- Further training an already pre-trained model on a smaller, task-specific…
- A model that can accept both an image and a text question about that image…
- What does top-p (nucleus) sampling do when choosing the next token?
- Assume that, on average, one token corresponds to about 0.75 English words…
- What is chain-of-thought prompting?
- An AI email assistant summarises incoming emails. One email contains hidden…
- In a RAG system, what is the main purpose of a vector database?
- A query embedding is q = (1, 2, 2). Four document embeddings are: D1 = (2, 1…
- A model's two candidate next tokens have logits 2 and 0. With softmax at…
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