I want to shuffle a fraction of the dataset (or randomly reassign the labels), in order to train a neural network on a noisy dataset. And this approach works for CIFAR and MNIST (torchvision)  but it fails for ImageFolder. The thing is that I don’t know why it does it, and how to fix it.
Thanks!