How should I convert tensor image range [-1,1] to [0,1]

I guess this has to be normalize.

You can refer to this post:

To renormalize the image, you can use transforms.Normalize(mean=[-1,-1,-1],std=[2,2,2]).

1 Like