You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that ToTensor() only rescales pixels of integer-valued images.
If PIL.mode corresponds to the image with the floating-point representation - no scaling to pixel values will be applied.
I noticed that ToTensor() only rescales pixels of integer-valued images.
If
PIL.mode
corresponds to the image with the floating-point representation - no scaling to pixel values will be applied.I think this should be documented in https://pytorch.org/docs/stable/torchvision/transforms.html?highlight=totensor#torchvision.transforms.ToTensor. Otherwise it's too confusing.
Related to: #546
The text was updated successfully, but these errors were encountered: