Intermediate level · Module 4 of 8 · 12 guided hours
Data Augmentation
Building better image datasets: collecting and labelling, augmentation with torchvision transforms, task-aware choices (what must not be changed), box-aware augmentation for detection, class balance and dataset documentation with anonymisation.
Learning objectives
- Apply augmentation with torchvision transforms and measure its effect
- Choose augmentations that preserve the label for a given task
- Collect, label, anonymise and document image datasets
Topics
- why augmentation works
- torchvision.transforms.v2
- task-aware augmentation
- augmenting boxes and masks
- class imbalance
- labelling, anonymisation and datasheets
Lessons
-
Lesson 1 Augmentation with torchvision Transforms
Learners apply flips, crops, rotations and colour changes with torchvision.transforms.v2 and measure the effect on validation accuracy.
transforms.v2.ComposeRandomResizedCropRandomHorizontalFlipColorJittertrain-only augmentation
-
Lesson 2 Task-Aware Augmentation for Classification, Detection and Segmentation
Learners decide which augmentations are safe for each task (no colour changes when colour is the label, no flips for text) and augment bounding boxes and masks together with images.
label-preserving transformscolour as signaltv_tensors.BoundingBoxestv_tensors.Masksynchronised transforms
-
Lesson 3 Collecting, Labelling and Documenting Image Data
Learners plan responsible image collection, write labelling guidelines, anonymise faces and number plates, check label quality, handle class imbalance and document the dataset in a datasheet.
labelling guidelinesanonymisation (blurring)label quality checksclass imbalancedatasheet
Practical activity
Prepare the level project's local dataset: anonymised images, labelling guidelines, labels in YOLO format, an augmentation policy and a datasheet.
Expected outcomes
- Responsible, well-documented image datasets
- Task-aware augmentation
Assessment
Augmentation experiment (30%), labelled dataset with guidelines (40%) and datasheet (30%).
Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.