so I am using this code block for transformed_dataset
transformed_dataset = MothLandmarksDataset(csv_file='moth_gt.csv',
                                           root_dir='.',
                                           transform=transforms.Compose([
                                               Rescale(256),
                                               RandomCrop(224),
                                               ToTensor()
                                           ]))

for i in range(len(transformed_dataset)):
    sample = transformed_dataset[i]

    print(i, sample['image'].size(), sample['landmarks'].size())

    if i == 3:
        break

transformed_dataset2222×878 95.9 KB
Does PyTorch have a utility function for doing data normalization? Is there a simple tutorial you could please link me to so I could learn? I am not sure how to normalize my data using transform