From b00d790165fc5a4c32c46caeacd75f46f38b07a5 Mon Sep 17 00:00:00 2001 From: Scott Schneider Date: Mon, 23 Jun 2025 10:55:43 -0700 Subject: [PATCH 1/2] Add libwebp to contributing doc --- CONTRIBUTING.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 41ecd860055..c0b71fb1809 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -38,13 +38,13 @@ instructions](https://pytorch.org/get-started/locally/). Note that the official instructions may ask you to install torchvision itself. If you are doing development on torchvision, you should not install prebuilt torchvision packages. -**Optionally**, install `libpng` and `libjpeg-turbo` if you want to enable +**Optionally**, install `libpng`, `libjpeg-turbo` and `libwebp1 if you want to enable support for -native encoding / decoding of PNG and JPEG formats in +native encoding / decoding of PNG, JPEG and WebP formats in [torchvision.io](https://pytorch.org/vision/stable/io.html#image): ```bash -conda install libpng libjpeg-turbo -c pytorch +conda install libpng libjpeg-turbo libwebp -c pytorch ``` Note: you can use the `TORCHVISION_INCLUDE` and `TORCHVISION_LIBRARY` From 6bb8f8bd8b5aa605bcd91a0c914e8c6387656095 Mon Sep 17 00:00:00 2001 From: Scott Schneider Date: Mon, 23 Jun 2025 10:57:22 -0700 Subject: [PATCH 2/2] Typo --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c0b71fb1809..b76b420c2c0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -38,7 +38,7 @@ instructions](https://pytorch.org/get-started/locally/). Note that the official instructions may ask you to install torchvision itself. If you are doing development on torchvision, you should not install prebuilt torchvision packages. -**Optionally**, install `libpng`, `libjpeg-turbo` and `libwebp1 if you want to enable +**Optionally**, install `libpng`, `libjpeg-turbo` and `libwebp` if you want to enable support for native encoding / decoding of PNG, JPEG and WebP formats in [torchvision.io](https://pytorch.org/vision/stable/io.html#image):