pypi / torchvision
torchvision
What changed in torchvision 0.24 to 0.29, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
7 breaking3 security1 deprecations4 new APIs and options7 performance7 behavior and defaults1 tooling19 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli inittorchvision 0.2910 changes
Breaking changes 2
This release is compatible with PyTorch 2.14 and later.
The CPU kernel now raises errors for out-of-range batch indices, bad ROI or gradient shapes, and oversized sampling grids instead of accessing memory out of bounds.
Security 1
Tar archives are extracted with
filter='data'to prevent paths from traversing outside the target directory.
Deprecations 1
The image decoders and encoders in torchvision.io are deprecated and will be removed in a future release; they are available in TorchCodec.
Behavior and default changes 2
The PyTorch requirement is relaxed from an exact 2.14.0 pin to torch>=2.14 because TorchVision is ABI stable with respect to PyTorch 2.14.
TorchVision 0.29 is ABI stable with torch 2.14 and compatible with future torch versions, so upgrading torch will not require a new TorchVision version.
Tooling 1
A single py3-none wheel is built per platform, covering supported CPython versions, including free-threaded builds.
Fixes and other changes 3
Fixed deformable convolution kernels always running on the default stream.
Fixed the JPEG transform for non-contiguous batches.
Fixed gradient overaccumulation in ROI ops.
torchvision 0.284 changes
Security 1
Fixes a malformed-GIF decoder bug that could write outside the allocated tensor's memory.
New APIs and options 1
Resize transforms now accept strings for the interpolation parameter.
Behavior and default changes 1
wrap() preserves metadata for custom TVTensor subclasses.
Fixes and other changes 1
F.resize now honors NEAREST_EXACT for tv_tensors.Mask inputs instead of silently using NEAREST.
torchvision 0.279 changes
Performance 3
Adds direct XYWH-CXCYWH conversion for better performance.
Mask-to-box conversion is vectorized for improved performance.
Resize is drastically faster on NEON ARM.
Behavior and default changes 1
Adds support for rotated boxes.
Fixes and other changes 5
This release is compatible with PyTorch 2.12.1.
Fixes CXCYWH-to-XYXY conversion for integer bounding boxes.
Fixes handling of empty masks.
Updates the VOC dataset and project site URLs.
Adds clamping to avoid an IndexError when a bounding box equals the canvas size.
torchvision 0.269 changes
Breaking changes 1
Video decoding and encoding utilities, including read_video, write_video, and VideoReader, have been removed; users are encouraged to switch to TorchCodec.
Security 1
Fixed an error-path leak when malformed inputs are processed.
Performance 2
CPU and GPU performance has been improved, and empty masks are now handled correctly.
Improves runtime complexity on MPS.
Behavior and default changes 1
Video datasets that relied on video decoding have been migrated to TorchCodec.
Fixes and other changes 4
Fixed edge-case conversion from CXCYWH to XYXY for integer bounding boxes.
TorchVision 0.26 is compatible with torch 2.11.
Preserves subclass types for BoundingBoxes and KeyPoints.
Fixes an incorrect normalization axis.
torchvision 0.254 changes
Breaking changes 1
KeyPoints are no longer clamped by default after a transform, changing the default behavior.
New APIs and options 2
The function now supports the label_background_colors parameter.
A transform was added to remove keypoints outside of the image area.
Fixes and other changes 1
Fixed an issue affecting some animated GIFs decoded by this function.
torchvision 0.2413 changes
Breaking changes 3
Raises an error for even-sized block sizes by enforcing odd-sized block sizes.
Raises an error for even-sized block sizes by enforcing odd-sized block sizes.
The deprecated video decoding backend has been removed.
New APIs and options 1
Adds control for the background color of label text boxes.
Performance 2
Improves efficiency by eliminating the intermediate conversion to xyxy format.
Accelerates the resize transform on machines with AVX512.
Behavior and default changes 2
Box operations now support arbitrary batch dimensions.
The GaussianNoise transform now supports uint8 image format.
Fixes and other changes 5
Updates the dataset download link to the official repository.
Updates the dataset download link to the official repository.
Fixes clamping for key points and adds a sanitization feature.
Improves error handling when the list of transforms is empty.
Fixes outputs of some geometric transforms for rotated boxes.