A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.pytorch.org/vision/stable/generated/torchvision.io.ImageReadMode.html below:

ImageReadMode — Torchvision 0.23 documentation

ImageReadMode
class torchvision.io.ImageReadMode(value)[source]

Allow automatic conversion to RGB, RGBA, etc while decoding.

Note

You don’t need to use this struct, you can just pass strings to all mode parameters, e.g. mode="RGB".

The different available modes are the following.

Note

Some decoders won’t support all possible values, e.g. GRAY and GRAY_ALPHA are only supported for PNG and JPEG images.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4