0
0
Computer Visionml~20 mins

Data augmentation importance in Computer Vision - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Data Augmentation Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Why use data augmentation in training image models?

Imagine you have a small set of photos to teach a computer to recognize cats. Why is it helpful to use data augmentation?

AIt converts images to grayscale to simplify the model.
BIt reduces the size of the dataset to speed up training.
CIt removes noisy images from the dataset to improve accuracy.
DIt creates new images by changing existing ones, helping the model learn more varied examples.
Attempts:
2 left
💡 Hint

Think about how changing images slightly can help the model see more types of cats.

Predict Output
intermediate
1:30remaining
Output of augmented image shape

Given this code snippet using TensorFlow's image augmentation, what is the shape of the output image?

Computer Vision
import tensorflow as tf

image = tf.random.uniform(shape=(100, 100, 3))
augmented = tf.image.random_flip_left_right(image)
print(augmented.shape)
A(100, 100, 3)
B(100, 100)
C(3, 100, 100)
D(None, None, 3)
Attempts:
2 left
💡 Hint

Flipping an image horizontally does not change its shape.

Model Choice
advanced
2:00remaining
Choosing a model to test data augmentation effect

You want to test how data augmentation improves model performance on a small image dataset. Which model choice is best to clearly see the effect?

AA random forest model on raw pixel values.
BA simple CNN with few layers trained with and without augmentation.
CA very deep CNN pretrained on a large dataset without augmentation.
DA linear regression model on flattened images.
Attempts:
2 left
💡 Hint

Think about a model that can learn from images and show clear differences when data changes.

Hyperparameter
advanced
2:00remaining
Best augmentation intensity for small datasets

When applying data augmentation to a small image dataset, which approach to augmentation intensity usually helps the model most?

AUse no augmentation to keep original data quality.
BUse very strong augmentation to create completely new images.
CUse moderate augmentation to increase diversity without making images unrealistic.
DUse only color changes without geometric transformations.
Attempts:
2 left
💡 Hint

Think about balancing new examples and keeping images recognizable.

Metrics
expert
2:30remaining
Evaluating augmentation impact on model metrics

You trained two image classifiers: one with data augmentation and one without. After training, the augmented model has higher training loss but better validation accuracy. What does this indicate?

AAugmentation helps reduce overfitting by making training harder but improving generalization.
BAugmentation causes the model to underfit, so it performs worse overall.
CHigher training loss means the augmented model is worse in every way.
DValidation accuracy is unreliable; only training loss matters.
Attempts:
2 left
💡 Hint

Think about what it means when training is harder but validation improves.