I am trying to create to data using torch transform. But when I am trying to save the images are saving in random manner.
import torch
import torchvision
import torchvision.transforms as transforms
from torchvision.utils import save_image
import cv2
from skimage.util import random_noise
my_transforms = transforms.Compose([
transforms.ToTensor(),

transforms.Resize((30,120)),

transforms.ColorJitter(brightness=0.5),

#transforms.RandomPerspective(distortion_scale=0.5, p=1, fill=1),

#transforms.RandomHorizontalFlip(p=0.1),

#transforms.RandomAffine(degrees=(10), scale=(.9, 1.1), shear=0),

#transforms.GaussianBlur(kernel_size=1, sigma=(0.1, 2.0)),

#transforms.Pad(padding=5, fill=1, padding_mode='constant')



])

dataset = torchvision.datasets.ImageFolder(root=“W:/2/…”,transform=my_transforms)
loader = torch.utils.data.DataLoader(dataset=dataset, batch_size=1, shuffle=False)