Update PyTorch dependencies (minor) - #9
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
renovate
Bot
force-pushed
the
renovate/pytorch
branch
2 times, most recently
from
June 18, 2026 02:08
e56b4fa to
481f84c
Compare
renovate
Bot
force-pushed
the
renovate/pytorch
branch
from
June 20, 2026 01:07
481f84c to
1d0fe3a
Compare
renovate
Bot
force-pushed
the
renovate/pytorch
branch
from
July 10, 2026 18:40
1d0fe3a to
0538f72
Compare
renovate
Bot
force-pushed
the
renovate/pytorch
branch
5 times, most recently
from
July 21, 2026 01:53
38ff384 to
e6e0983
Compare
renovate
Bot
force-pushed
the
renovate/pytorch
branch
from
July 30, 2026 18:59
e6e0983 to
ccf1ebd
Compare
renovate
Bot
force-pushed
the
renovate/pytorch
branch
from
August 12, 2026 01:12
ccf1ebd to
e972dec
Compare
renovate
Bot
force-pushed
the
renovate/pytorch
branch
from
August 16, 2026 11:37
e972dec to
fe958bd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==0.13.0→==0.16.0==0.27.1→==0.28.0Release Notes
pytorch/torchcodec (torchcodec)
v0.16.0: TorchCodec 0.16 - Image decoding and encodingCompare Source
TorchCodec 0.16 is out! It is compatible with
torch >= 2.11. The headline feature of this release is image decoding and encoding: TorchCodec now natively decodes and encodes JPEG (CPU and CUDA), PNG, WebP, GIF, AVIF and HEIC. These image decoders and encoders replace their torchvision counterparts, which are now deprecated.TorchCodec is the recommended way to decode and encode images in the PyTorch ecosystem. If you are coming from torchvision, we wrote a migration guide
Image decoding
TorchCodec exposes one entry-point per format, plus a generic
decode_image()that automatically detects the format. The API is largely backward-compatible with TorchVision:Sources can be a path (
strorpathlib.Path),bytes, or a 1D uint8 tensor of encoded bytes:Animated and multi-image formats (WebP, GIF, AVIF, HEIC) decode into an
(N, C, H, W)tensor:JPEG decoding is also supported on CUDA, through nvJPEG. For CUDA, prefer passing a batch of sources: the whole batch is decoded in a single nvJPEG call, which is much faster than decoding images one at a time.
Read more in our image decoding tutorial
Image encoding
Image encoders follow the same class-based design as our video and audio encoders: build the encoder from a
CHWuint8 tensor, then choose where the encoded bytes go: a file, a file-like object, or a tensor.JPEG encoding is supported on CUDA as well: pass a CUDA tensor and the encoding happens on the GPU with nvJPEG, with
to_tensor()returning a CUDA tensor (no host round-trip).Read more in our image encoding tutorial
Improvements over torchvision's decoders / encoders
The image decoders and encoders were migrated from
torchvisionandtorchvision-extra-decoders, with the same performance, and they are significantly more capable:UNCHANGED,GRAY,GRAY_ALPHA,RGB,RGB_ALPHA. torchvision only supportsGRAYfor PNG and JPEG, and rejects or ignores it elsewhere.(N, C, H, W). torchvision rejects animated WebP, errors on multi-image AVIF, and only decodes the primary HEIC image.output_dtypecontrol (torch.uint8,torch.uint16, or"auto") on every decoder. torchvision has no equivalent: the output dtype is dictated by the source.decode_image()auto-detects all six formats, including AVIF and HEIC. torchvision only handles four.str/Path/bytes/Tensoreverywhere, non-contiguous encoded input accepted, and batched input for JPEG on both CPU and CUDA.libheifis found at runtime. We don't bundle it because it is LGPL, so install it yourself (e.g.conda install -c conda-forge libheif). Torchvision required the separatetorchvision-extra-decoderspackage for both, and itsdecode_imagecouldn't dispatch to them.Along the way we fixed a number of correctness bugs inherited from torchvision, among them: PNG palette and tRNS transparency handling, GIF frame disposal (now aligned with Pillow), truncated JPEGs erroring instead of returning garbage, correct CMYK/YCCK handling, real grayscale for WebP, progressive AVIF stills, and full-range >8-bit HEIC output.
If you are coming from torchvision, we wrote a migration guide
FFmpeg is now an optional dependency
import torchcodecno longer fails at import time if FFmpeg cannot be found. FFmpeg is still required for video and audio decoding and encoding, but the image decoders and encoders don't need FFmpeg and work in FFmpeg-free environments.FFmpeg 9 support
TorchCodec now support the recently released FFmpeg 9!
Bug Fixes
AudioDecoderseeks on MPEG-PS files (#1619).to_tensor()no longer emits a spurious warning (#1510).v0.15.0: TorchCodec 0.15Compare Source
TorchCodec 0.15 is out! This is a small release compatible with
torch >= 2.11, with the following improvements:num_ffmpeg_threadsis high.v0.14.0: TorchCodec 0.14: HDR Video Decoding for CPU & CUDA, and Fast Wav DecoderCompare Source
TorchCodec 0.14 is out! It is compatible with
torch >= 2.11. It comes with two major additions: a fast audioWavDecoder, and support for HDR video decoding!Fast wav decoder
Inspired by SDPL's fast wav decoder, TorchCodec now has a dedicated
WavDecoderfor decoding WAV files. It bypasses FFmpeg entirely and reads WAV data directly, resulting in significantly faster decoding. It supports multiple sample formats (int16, int32, float32, etc.), and can decode from files, bytes, or file-like objects.Read more in our docs.
HDR Video Decoding
VideoDecodernow supports HDR (High Dynamic Range) video decoding without losing precision. Whenoutput_dtype=torch.float32is specified, the decoder outputs RGB float32 frames in[0, 1], preserving the full HDR color range. This is supported for both CPU and CUDA!Read more in our docs.
Other Improvements
AudioDecoderseeking is now much faster (#1449)TorchCodecno longer depends on NVIDIA's NPP library, which will simplify installing and using TorchCodec for CUDA decoding.Bug Fixes
pytorch/vision (torchvision)
v0.28.0: TorchVision 0.28.0 ReleaseCompare Source
TorchVision 0.28 is out with some small enhancement and bug-fixes:
Enhancements
Bug fixes
F.resizeontv_tensors.Maskto honorNEAREST_EXACTinterpolation. Previously theinterpolationargument was ignored for mask inputs (resize_maskhardcodedNEAREST), soNEAREST_EXACTsilently produced plainNEARESToutput (#9497)Contributors
🎉 We're grateful for our community, which helps us improve Torchvision by submitting issues and PRs, and providing feedback and suggestions. The following persons have contributed patches for this release:
Andrey Talman, Benson Ma, Jason Fried, Joanne Yun, Nicolas Hug
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.