Add geometric transformation data to my training Set


I have a dataset of 100 labeled data from the CIFAR dataset.
I would like to do some geometric transformation to this data, and add it to the training set . What is the easiest way to do it??

Thanks !!


You could add transformations by using torchvision.transforms here.

import torchvision.transforms as transforms
transforms_ = transforms.Compose(

And then create a DataLoader pass the dataset and transforms_ to the dataloader.