Загрузка
The image decoding and encoding capabilities of TorchVision are deprecated since torchvision 0.29 and will be removed in a future release. They are superseded by the more complete decoders and encoders of TorchCodec (from torchcodec 0.16). Please see this migration guide on how to migrate your code.
input (Tensor[channels, image_height, image_width]) – int8 image tensor of
c channels, where c must 3 or 1.
compression_level (int) – Compression factor for the resulting file, it must be a number between 0 and 9. Default: 6
PNG file.
Tensor[1]