Learn Before
Concept
Image Filtering for Random Cropping in Semantic Segmentation
When constructing a dataset pipeline for semantic segmentation that utilizes random fixed-shape cropping, some input images may possess spatial dimensions (height or width) that are smaller than the designated output crop size. To prevent out-of-bounds errors during the cropping operation, these insufficiently sized examples must be programmatically filtered out and excluded from the training pipeline.
0
1
Updated 2026-05-21
Tags
D2L
Dive into Deep Learning @ D2L