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.

Principles of Information Systems (MindTap Course List)
12th Edition
ISBN:9781285867168
Author:Ralph Stair, George Reynolds
Publisher:Ralph Stair, George Reynolds
Chapter5: Database Systems And Applications
Section: Chapter Questions
Problem 20SAT
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
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning