From 9f3ddeb5ec4e1b2b015f38eb7f14ab8fe277be52 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Thu, 6 Jun 2024 15:42:52 +0800 Subject: [PATCH] fix doc of read_image --- torchvision/io/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchvision/io/image.py b/torchvision/io/image.py index 5caf9b111ac..e7a429880a2 100644 --- a/torchvision/io/image.py +++ b/torchvision/io/image.py @@ -259,7 +259,7 @@ def read_image( The values of the output tensor are uint8 in [0, 255]. Args: - path (str or ``pathlib.Path``): path of the JPEG or PNG image. + path (str or ``pathlib.Path``): path of the JPEG, PNG or GIF image. mode (ImageReadMode): the read mode used for optionally converting the image. Default: ``ImageReadMode.UNCHANGED``. See ``ImageReadMode`` class for more information on various