The current DatasetAdapter exclusively maps dataset output to tuple(image, label), without any transformation on both.
The thing is that we we talk about DatasetAdapter we usually refer to an object that yields (image, label) in a clear and ready-to-use format (e.g. B, C, H, W for image and N, 6 and XYXY for detection)
Motivation
The current
DatasetAdapter
exclusively maps dataset output to tuple(image, label), without any transformation on both. The thing is that we we talk aboutDatasetAdapter
we usually refer to an object that yields (image, label) in a clear and ready-to-use format (e.g.B, C, H, W
for image andN, 6
andXYXY
for detection)Solution
Rename
DatasetAdapter
intoDatasetOutputMapper