Challenge - 5 Problems
Albumentations Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediate2:00remaining
What is the output shape after applying this Albumentations transform?
Given the following Albumentations pipeline applied to a 256x256 RGB image, what will be the shape of the output image?
Computer Vision
import albumentations as A import numpy as np transform = A.Compose([ A.RandomCrop(width=224, height=224), A.HorizontalFlip(p=1.0), ]) image = np.zeros((256, 256, 3), dtype=np.uint8) augmented = transform(image=image) output = augmented['image'].shape
Attempts:
2 left
💡 Hint
RandomCrop changes the image size, HorizontalFlip does not change shape.
✗ Incorrect
RandomCrop crops the image to 224x224 pixels, keeping 3 color channels. HorizontalFlip only flips horizontally without changing shape.
❓ Model Choice
intermediate2:00remaining
Which Albumentations transform is best to increase brightness randomly?
You want to randomly increase or decrease the brightness of images during training. Which Albumentations transform should you use?
Attempts:
2 left
💡 Hint
Brightness changes pixel intensity, contrast changes difference between light and dark.
✗ Incorrect
RandomBrightnessContrast with brightness_limit changes brightness randomly. Other options do not affect brightness.
❓ Hyperparameter
advanced2:00remaining
What is the effect of setting p=0.5 in an Albumentations transform?
In Albumentations, what does setting the parameter p=0.5 for a transform do during augmentation?
Attempts:
2 left
💡 Hint
p controls the probability of applying the transform.
✗ Incorrect
p=0.5 means the transform is applied randomly to half of the images, otherwise skipped.
🔧 Debug
advanced2:00remaining
Why does this Albumentations pipeline raise an error?
Consider this Albumentations pipeline:
transform = A.Compose([
A.RandomCrop(width=300, height=300),
A.HorizontalFlip(p=0.5),
])
image = np.zeros((256, 256, 3), dtype=np.uint8)
augmented = transform(image=image)
Why does this code raise an error?
Attempts:
2 left
💡 Hint
RandomCrop cannot crop bigger than the image.
✗ Incorrect
RandomCrop cannot crop a 300x300 area from a 256x256 image, so it raises an error.
🧠 Conceptual
expert3:00remaining
Which Albumentations transform is best for simulating motion blur in images?
You want to simulate motion blur effects on images to make your model robust to camera movement. Which Albumentations transform should you use?
Attempts:
2 left
💡 Hint
Motion blur simulates streaks caused by movement.
✗ Incorrect
MotionBlur simulates directional blur caused by motion, unlike GaussianBlur which is uniform blur.