Learn Before
Example
Training Image Preprocessing for Hot Dog Recognition
During the training phase of the hot dog recognition model, a multi-step random augmentation pipeline is applied to each image. First, a region of random size and arbitrary aspect ratio is cropped from the original image and then rescaled to a uniform resolution. Next, a random horizontal flip is applied to further diversify the training samples. Finally, the three RGB channels are standardized using the ImageNet channel statistics. These stochastic transformations expand the effective training set and help the model generalize beyond the limited target dataset.
0
1
Updated 2026-05-19
Tags
D2L
Dive into Deep Learning @ D2L