Jump into concepts and practice - no test required
or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Recall & Review
beginner
What is data augmentation in computer vision?
Data augmentation is a technique that creates new training images by modifying existing ones, like flipping, rotating, or changing colors, to help the model learn better.
Click to reveal answer
beginner
Why is data augmentation important for training computer vision models?
It helps the model see more varied examples, which reduces overfitting and improves its ability to recognize objects in new, unseen images.
Click to reveal answer
intermediate
How does data augmentation help with overfitting?
By increasing the diversity of training images, data augmentation prevents the model from memorizing exact images and encourages it to learn general patterns.
Click to reveal answer
beginner
Name three common data augmentation techniques used in computer vision.
Common techniques include flipping images horizontally, rotating images by small angles, and adjusting brightness or contrast.
Click to reveal answer
intermediate
Can data augmentation replace collecting more real data? Why or why not?
No, data augmentation helps but cannot fully replace real data because it only modifies existing images and may not capture all real-world variations.
Click to reveal answer
What is the main goal of data augmentation in computer vision?
AIncrease training data variety to improve model learning
BReduce the size of the training dataset
CMake images look more colorful
DRemove noise from images
✗ Incorrect
Data augmentation increases the variety of training data to help the model learn better and generalize well.
Which of the following is NOT a common data augmentation technique?
AHorizontal flipping
BDeleting pixels permanently
CImage rotation
DAdding random noise
✗ Incorrect
Deleting pixels permanently is not a standard augmentation technique because it can remove important image information.
How does data augmentation affect overfitting?
AIt increases overfitting
BIt causes the model to memorize data
CIt has no effect
DIt reduces overfitting by adding variety
✗ Incorrect
Data augmentation reduces overfitting by providing more varied examples for the model to learn from.
Why can't data augmentation fully replace collecting new real images?
ABecause it only modifies existing images and may miss real-world variations
BBecause augmented images are always blurry
CBecause it is too slow
DBecause it requires special hardware
✗ Incorrect
Data augmentation modifies existing images but cannot create completely new real-world scenarios.
Which of these is a benefit of using data augmentation?
ALess memory usage
BFaster training time
CImproved model generalization
DSimpler model architecture
✗ Incorrect
Data augmentation helps the model generalize better by exposing it to more varied data.
Explain why data augmentation is important for training computer vision models.
Think about how seeing more different images helps a model perform better on new images.
You got /4 concepts.
List and describe three common data augmentation techniques used in computer vision.
Consider simple ways to change images without changing their meaning.
You got /3 concepts.
Practice
(1/5)
1. Why is data augmentation important in training computer vision models?
easy
A. It increases the variety of training images to help the model generalize better.
B. It reduces the size of the training dataset to speed up training.
C. It removes noisy images from the dataset automatically.
D. It guarantees 100% accuracy on the training data.
Solution
Step 1: Understand data augmentation purpose
Data augmentation creates new images by slightly changing existing ones to increase variety.
Step 2: Connect augmentation to model learning
More variety helps the model learn features that work on new, unseen images, improving generalization.
Final Answer:
It increases the variety of training images to help the model generalize better. -> Option A
Quick Check:
Data augmentation = better generalization [OK]
Hint: Think: more image variety means better learning [OK]
Common Mistakes:
Confusing augmentation with data reduction
Believing augmentation removes bad images
Assuming augmentation guarantees perfect accuracy
2. Which of the following is a correct way to apply horizontal flip augmentation using Python's torchvision library?
easy
A. transforms.FlipHorizontal(prob=0.5)
B. transforms.HorizontalFlip(0.5)
C. transforms.RandomHorizontalFlip(p=0.5)
D. transforms.RandomFlipHorizontal()
Solution
Step 1: Recall torchvision syntax for horizontal flip
The correct transform is RandomHorizontalFlip with a probability parameter p.
Step 2: Check each option's correctness
Only transforms.RandomHorizontalFlip(p=0.5) matches the correct syntax and parameter name.
Final Answer:
transforms.RandomHorizontalFlip(p=0.5) -> Option C
A. RandomHorizontalFlip expects a keyword argument p, not a positional float.
B. RandomRotation requires integer degrees, not float.
C. ToTensor must come before RandomRotation.
D. Compose cannot combine these transforms.
Solution
Step 1: Check RandomHorizontalFlip usage
RandomHorizontalFlip requires the probability parameter as a keyword argument p=, not a positional argument.
Step 2: Verify other transform usages
RandomRotation accepts float degrees, ToTensor can be last, Compose supports these transforms.
Final Answer:
RandomHorizontalFlip expects a keyword argument p, not a positional float. -> Option A
Quick Check:
RandomHorizontalFlip(p=0.3) correct syntax [OK]
Hint: Check if transform params use correct keywords [OK]
Common Mistakes:
Passing probability as positional argument
Thinking rotation degrees must be integer
Misordering transforms in Compose
5. You have a small dataset of 100 images for a classification task. Which data augmentation strategy will most likely improve your model's ability to recognize objects in new photos?
hard
A. Only resize images to a fixed size without any other changes.
B. Apply random flips, rotations up to 30 degrees, and brightness changes during training.
C. Add Gaussian noise to all images without any geometric transforms.
D. Train without augmentation but increase model layers.
Solution
Step 1: Consider dataset size and augmentation needs
Small datasets benefit from augmentations that create varied views of images to prevent overfitting.
Step 2: Evaluate augmentation types
Random flips, rotations, and brightness changes simulate real-world variations, improving generalization better than noise alone or no augmentation.
Final Answer:
Apply random flips, rotations up to 30 degrees, and brightness changes during training. -> Option B
Quick Check:
Varied augmentations = better generalization on small data [OK]
Hint: Use varied simple transforms for small datasets [OK]