yamle.data.dataset_wrappers module#
- class yamle.data.dataset_wrappers.SurrogateDataset(dataset, transform=None, target_transform=None, joint_transform=None)[source]#
Bases:
DatasetThis class is a dataset wrapper, ensuring that the transforms are applied to the data and targets after splitting the dataset into training and validation.
- Parameters:
- class yamle.data.dataset_wrappers.InputImagePaddingDataset(dataset, padding)[source]#
Bases:
DatasetThis class is a dataset wrapper, which can pad the input image to a given size.
- class yamle.data.dataset_wrappers.ImageRotationDataset(dataset, max_angle=90, min_angle=0, seed=42)[source]#
Bases:
DatasetThis class is a dataset wrapper for image rotation.
It discards the target and replaces it with the rotation angle which should be predicted. This changes the task from anything to regression.