unstale

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 init

@unstale/cli on npm

torchvision 0.2910 changes

Breaking changes 2

  • This release is compatible with PyTorch 2.14 and later.

    0.29.2release notes

  • 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.

    0.29.2release notes

Security 1

  • Tar archives are extracted with filter='data' to prevent paths from traversing outside the target directory.

    0.29.2release notes

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.

    0.29.0release notes

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.

    0.29.1release notes

  • 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.

    0.29.0release notes

Tooling 1

  • A single py3-none wheel is built per platform, covering supported CPython versions, including free-threaded builds.

    0.29.2release notes

Fixes and other changes 3

  • Fixed deformable convolution kernels always running on the default stream.

    0.29.0release notes

  • Fixed the JPEG transform for non-contiguous batches.

    0.29.0release notes

  • Fixed gradient overaccumulation in ROI ops.

    0.29.0release notes

torchvision 0.284 changes

Security 1

  • Fixes a malformed-GIF decoder bug that could write outside the allocated tensor's memory.

    0.28.0release notes

New APIs and options 1

  • Resize transforms now accept strings for the interpolation parameter.

    0.28.0release notes

Behavior and default changes 1

  • wrap() preserves metadata for custom TVTensor subclasses.

    0.28.0release notes

Fixes and other changes 1

  • F.resize now honors NEAREST_EXACT for tv_tensors.Mask inputs instead of silently using NEAREST.

    0.28.0release notes

torchvision 0.279 changes

Performance 3

  • Adds direct XYWH-CXCYWH conversion for better performance.

    0.27.0release notes

  • Mask-to-box conversion is vectorized for improved performance.

    0.27.0release notes

  • Resize is drastically faster on NEON ARM.

    0.27.0release notes

Behavior and default changes 1

Fixes and other changes 5

  • This release is compatible with PyTorch 2.12.1.

    0.27.1release notes

  • Fixes CXCYWH-to-XYXY conversion for integer bounding boxes.

    0.27.0release notes

  • Fixes handling of empty masks.

    0.27.0release notes

  • Updates the VOC dataset and project site URLs.

    0.27.0release notes

  • Adds clamping to avoid an IndexError when a bounding box equals the canvas size.

    0.27.0release notes

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.

    0.26.0release notes

Security 1

  • Fixed an error-path leak when malformed inputs are processed.

    0.26.0release notes

Performance 2

Behavior and default changes 1

  • Video datasets that relied on video decoding have been migrated to TorchCodec.

    0.26.0release notes

Fixes and other changes 4

torchvision 0.254 changes

Breaking changes 1

  • KeyPoints are no longer clamped by default after a transform, changing the default behavior.

    0.25.0release notes

New APIs and options 2

  • The function now supports the label_background_colors parameter.

    0.25.0release notes

  • A transform was added to remove keypoints outside of the image area.

    0.25.0release notes

Fixes and other changes 1

  • Fixed an issue affecting some animated GIFs decoded by this function.

    0.25.0release notes

torchvision 0.2413 changes

Breaking changes 3

  • Raises an error for even-sized block sizes by enforcing odd-sized block sizes.

    0.24.0release notes

  • Raises an error for even-sized block sizes by enforcing odd-sized block sizes.

    0.24.0release notes

  • The deprecated video decoding backend has been removed.

    0.24.0release notes

New APIs and options 1

  • Adds control for the background color of label text boxes.

    0.24.0release notes

Performance 2

  • Improves efficiency by eliminating the intermediate conversion to xyxy format.

    0.24.0release notes

  • Accelerates the resize transform on machines with AVX512.

    0.24.0release notes

Behavior and default changes 2

  • Box operations now support arbitrary batch dimensions.

    0.24.0release notes

  • The GaussianNoise transform now supports uint8 image format.

    0.24.0release notes

Fixes and other changes 5

  • Updates the dataset download link to the official repository.

    0.24.0release notes

  • Updates the dataset download link to the official repository.

    0.24.0release notes

  • Fixes clamping for key points and adds a sanitization feature.

    0.24.0release notes

  • Improves error handling when the list of transforms is empty.

    0.24.0release notes

  • Fixes outputs of some geometric transforms for rotated boxes.

    0.24.0release notes