How does data augmentation work on images in pytorch? i,e How does it work internally? For example. If my dataset has 8 images and i compose a transform as below
Will the pytorch dataloader have access to 8*4=32 number of images? If so, How to display(or save) these 32 images? Can we access these 32 images?
How to apply augmentation to image segmentation dataset? In segmentation, we use both image and mask. In some cases we dont want to apply augmentation to mask(eg. transforms.ColorJitter). If we pass both image and mask simultaneously to the pytorch augmentation function then augmentation will be applied to both image and mask. If we apply separately, then in case of random augmentations like transforms.RandomVerticalFlip(.5), the random augmentation may be applied to image and may not be applied to the mask. How to deal with this kind of situation?