ImageReadMode¶
- class torchvision.io.ImageReadMode(value)[source]¶
Support for various modes while reading images.
Use
ImageReadMode.UNCHANGED
for loading the image as-is,ImageReadMode.GRAY
for converting to grayscale,ImageReadMode.GRAY_ALPHA
for grayscale with transparency,ImageReadMode.RGB
for RGB andImageReadMode.RGB_ALPHA
for RGB with transparency.