3.2.13 · D3Training Deep Networks

Worked examples — Data augmentation strategies

3,584 words16 min readBack to topic

This is a worked-examples deep dive for the parent note on data augmentation — that parent note introduced the formulas for flips, crops, Mixup and CutMix; read it first if a formula here looks unfamiliar, because this page only applies those formulas to every kind of input you could meet: normal cases, edge cases, degenerate (broken) cases, a real-world word problem, and an exam-style twist.

Before any symbol appears, we recall it in one plain line so a newcomer can start from line one.


The scenario matrix

Every augmentation problem falls into one of these cells. The worked examples below are each tagged with the cell they cover, and together they hit every row.

Cell What makes it special Covered by
A. Geometric — normal crop/flip inside valid range Ex 1
B. Geometric — degenerate crop size = image size (zero freedom) Ex 2
C. Sign/limit of , endpoints Ex 3
D. Mixup — interior ordinary soft label Ex 4
E. CutMix — area-based label set by pixels, not chosen Ex 5
F. Label-destroying transform flip that breaks the class Ex 6
G. Over-augmentation limit strength → too high, off-distribution Ex 7
H. Real-world word problem pick a policy for a real dataset Ex 8
I. Exam twist Beta expectation Ex 9

The columns "signs / zero / limits / word problem / twist" from the contract map to cells C, B, C, H, I respectively — none are skipped.


Cell A — Geometric, normal case


Cell B — Geometric, degenerate (zero freedom)


Cell C — Sign / limits of


Cell D — Mixup, interior value


Cell E — CutMix, area-driven label


Cell F — Label-destroying transform


Cell G — Over-augmentation limit


Cell H — Real-world word problem


Cell I — Exam twist


Active recall