If I have the dataset as two arrays X and y as images and labels, both are numpy arrays. I want to apply transforms (like those from models given by the pretrainedmodels package), how can apply them on my data, especially as the way as datasets.ImageFolder.
My numpy arrays are converted from PIL Images, and I found how to convert numpy arrays to dataset loaders here 271.