Tensor (image) with negative values

Hi,

transforms.ToTensor() scales your input between [0, 1] but transforms.Normalize(mean, std) computes z-score for input images (normalize images) so it is expected to see negative values and even out of range [-1, 1] as you are using mean and std != 0.5.

Bests

2 Likes