I think you should pass a single image for the normalize transform. Usually the transform is called inside the ‘getitem’ function of the dataset class. You are I think passing a whole batch of 128 images.