0
0
Prompt Engineering / GenAIml~20 mins

Why AI image generation creates visual content in Prompt Engineering / GenAI - Challenge Your Understanding

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
AI Image Generation Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
How does AI image generation learn to create pictures?

AI image generation models create pictures by learning from many examples. What is the main way these models learn to produce new images?

ABy randomly guessing pixels until an image looks good
BBy memorizing every image exactly and copying them
CBy using a fixed set of pre-drawn images to combine
DBy learning patterns and features from many images to create new ones
Attempts:
2 left
💡 Hint

Think about how learning from examples helps create something new, not just copying.

Predict Output
intermediate
1:30remaining
Output of a simple AI image generation step

Given this simplified code snippet that generates a 2x2 pixel image with random colors, what is the shape of the output array?

Prompt Engineering / GenAI
import numpy as np
image = np.random.rand(2, 2, 3)
print(image.shape)
A(2, 2, 3)
B(3, 2, 2)
C(2, 3, 2)
D(3, 3, 3)
Attempts:
2 left
💡 Hint

Remember the shape format for images is height, width, and color channels.

Model Choice
advanced
2:30remaining
Choosing the right AI model for image generation

You want to generate realistic images from text descriptions. Which AI model type is best suited for this task?

AConvolutional Neural Network (CNN) for image classification
BGenerative Adversarial Network (GAN) trained on image-text pairs
CRecurrent Neural Network (RNN) for sequence prediction
DDecision Tree for image segmentation
Attempts:
2 left
💡 Hint

Think about models that can create new images and learn from text descriptions.

Metrics
advanced
2:00remaining
Evaluating AI image generation quality

Which metric is commonly used to measure how realistic AI-generated images are compared to real images?

AInception Score (IS)
BPrecision
CAccuracy
DMean Squared Error (MSE)
Attempts:
2 left
💡 Hint

This metric uses a pre-trained image classifier to evaluate generated images.

🔧 Debug
expert
3:00remaining
Debugging a failed AI image generation training

During training of an AI image generator, the loss stays very high and images look like noise. Which issue is most likely causing this?

AThe model has too few layers to learn features
BThe dataset images are too small in size
CThe learning rate is too high, causing unstable training
DThe optimizer is set to 'adam' instead of 'sgd'
Attempts:
2 left
💡 Hint

Think about what causes training to fail to improve and produce noise.