0
0
Computer Visionml~20 mins

Augmentation policy search (AutoAugment) in Computer Vision - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
AutoAugment Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
What is the main goal of AutoAugment in image classification?

AutoAugment is a technique used in computer vision. What is its primary purpose?

ATo reduce the size of the training dataset by removing similar images
BTo convert images into grayscale to reduce color complexity
CTo speed up the training process by simplifying the model architecture
DTo automatically find the best set of image transformations to improve model accuracy
Attempts:
2 left
💡 Hint

Think about how AutoAugment changes the input images before training.

Model Choice
intermediate
1:30remaining
Which model training step benefits most from AutoAugment policies?

During training an image classifier, which step is directly improved by applying AutoAugment policies?

AData preprocessing by applying learned image transformations
BModel parameter initialization
CLoss function selection
DFinal model evaluation on test data
Attempts:
2 left
💡 Hint

AutoAugment changes the input images before feeding them to the model.

Predict Output
advanced
2:00remaining
What is the output shape after applying AutoAugment to a batch of images?

Given a batch of 32 RGB images of size 224x224, what will be the shape of the batch after applying AutoAugment policies?

Computer Vision
import torch
from torchvision import transforms

to_pil = transforms.ToPILImage()
to_tens = transforms.ToTensor()
batch = torch.randn(32, 3, 224, 224)  # batch of images
policy = transforms.AutoAugment()
augmented_batch = torch.stack([to_tens(policy(to_pil(img))) for img in batch])
print(augmented_batch.shape)
Atorch.Size([32, 3, 224, 224])
Btorch.Size([3, 32, 224, 224])
Ctorch.Size([32, 1, 224, 224])
Dtorch.Size([32, 3, 112, 112])
Attempts:
2 left
💡 Hint

AutoAugment applies transformations but does not change image size or batch size.

Hyperparameter
advanced
1:30remaining
Which hyperparameter in AutoAugment controls the strength of image transformations?

AutoAugment applies various transformations with different intensities. Which hyperparameter controls this intensity?

ALearning rate
BMagnitude
CBatch size
DEpoch count
Attempts:
2 left
💡 Hint

This parameter adjusts how strong each augmentation operation is.

Metrics
expert
2:00remaining
How does AutoAugment typically affect validation accuracy and training loss?

When using AutoAugment policies during training, what is the typical effect on validation accuracy and training loss?

AValidation accuracy decreases, training loss stays the same
BValidation accuracy decreases, training loss decreases significantly
CValidation accuracy increases, training loss may increase or stay similar
DValidation accuracy stays the same, training loss increases drastically
Attempts:
2 left
💡 Hint

Think about how augmentation affects model generalization and training difficulty.