I have Image data and I have custom augmentation classes for transforms.
transform_custom = [Rescale(256), RandomCrop(224), Resize(224)]
These classes are passed to transform
and its output to DataLoader
transformed_dataset = Classification(df, transform=transforms.Compose(transform_custom))
dataloader = DataLoader(transformed_dataset, shuffle=True, num_workers=0, batch_size=4).
Question:
Does all Images undergo .all mentioned rescale
, random_crop
and resize
transformations or Images and transformations are randomly selected to undergo transformations?
If all the Images undergo all transformations, How can I make selection of Images and selection of transformation random?
As per my observation, all images undergo all transformations from left to right! but the pytorch library undergoes transformation randomly. how can i implement this feature in my script