In Task 2, you try to look inside the generative process. What can you say about it? Select one: a. The generative process appears slightly chaotic and is not immediately clear for a human to interpret. b. The model starts with the image it came up with which is first in black and white. It then gradually colours the image one bit at a time. c. The model drafts things similarly as a human would. It starts by sketching out outlines and then fills in the details.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

In Task 2, you try to look inside the generative process. What can you say about it?

Select one:

a.

The generative process appears slightly chaotic and is not immediately clear for a human to interpret.

b.

The model starts with the image it came up with which is first in black and white. It then gradually colours the image one bit at a time.

c.

The model drafts things similarly as a human would. It starts by sketching out outlines and then fills in the details.

Task 2: Images from different inference steps
We can inspect what the generated images look like at different number of inference steps. An inference step involves a forward pass of the the text prompt and
the current image passed as input to Stable Diffusion. The first inference step involves inputting an image with random pixels together with the written text
prompt to obtain the generated image. The subsequent inference steps then uses the last generated image as input together with the text prompt to refine the
generated image.
Given a text prompt, we will generate images at different inference steps and inspect the resulting output images by running the cell below.
Be patient. Generating these images will take several minutes with 30 seconds per inference step. You can try reducing the number of steps that you
want to use.
In [] # The prompt is the text you input to the model, edit below
prompt = "a photo of an astronaut riding a horse on mars"
# The different number of inference steps to test
inference_steps
[1, 2, 4, 8, 16, 25]
images []
for num_inference_steps in inference_steps:
# Generate image from the prompt for the given number of inference steps
image = generate_image_from_text_prompt (pipe, prompt,
images. append (image)
num_inference_steps=num_inference_steps,
seed=seed)
Plot the generated images to inspect what they look like at different inference steps by running the cell below.
In [ ]: plot_images_and_inference_steps (images, inference_steps, rows=2, cols=3)
Transcribed Image Text:Task 2: Images from different inference steps We can inspect what the generated images look like at different number of inference steps. An inference step involves a forward pass of the the text prompt and the current image passed as input to Stable Diffusion. The first inference step involves inputting an image with random pixels together with the written text prompt to obtain the generated image. The subsequent inference steps then uses the last generated image as input together with the text prompt to refine the generated image. Given a text prompt, we will generate images at different inference steps and inspect the resulting output images by running the cell below. Be patient. Generating these images will take several minutes with 30 seconds per inference step. You can try reducing the number of steps that you want to use. In [] # The prompt is the text you input to the model, edit below prompt = "a photo of an astronaut riding a horse on mars" # The different number of inference steps to test inference_steps [1, 2, 4, 8, 16, 25] images [] for num_inference_steps in inference_steps: # Generate image from the prompt for the given number of inference steps image = generate_image_from_text_prompt (pipe, prompt, images. append (image) num_inference_steps=num_inference_steps, seed=seed) Plot the generated images to inspect what they look like at different inference steps by running the cell below. In [ ]: plot_images_and_inference_steps (images, inference_steps, rows=2, cols=3)
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Processes of 3D Graphics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education