Skip to content

⬆️ Bump torchvision from 0.19.1 to 0.28.0#1391

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/main/torchvision-0.28.0
Open

⬆️ Bump torchvision from 0.19.1 to 0.28.0#1391
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/main/torchvision-0.28.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 9, 2026

Copy link
Copy Markdown
Contributor

Bumps torchvision from 0.19.1 to 0.28.0.

Release notes

Sourced from torchvision's releases.

TorchVision 0.28.0 Release

TorchVision 0.28 is out! This is a small release whose main change is the removal of the deprecated video decoding and encoding APIs (read_video, write_video, read_video_timestamps, VideoReader) from torchvision.io. Video decoding and encoding has fully migrated to TorchCodec as a part of our efforts to re-focus TorchVision. On the transforms side, v2.Resize now accepts string interpolation modes (e.g. "bilinear") and correctly honors NEAREST_EXACT on masks.

Backwards Incompatible Changes

  • Video decoding/encoding removed from torchvision.io; migrated to TorchCodec (#9451)

    read_video, write_video, read_video_timestamps, and VideoReader are no longer available in OSS torchvision, and the video-backed datasets now require TorchCodec. These APIs were deprecated (with warnings) in prior releases and are now gone.

    Symptoms you may hit:

    • ImportError: cannot import name 'read_video' from 'torchvision.io'
    • import torchvision.io.video raising ModuleNotFoundError/ImportError
    • From video datasets: ImportError: Video decoding capabilities were removed from torchvision and migrated to TorchCodec. Please install TorchCodec following instructions at https://github.com/pytorch/torchcodec#installing-torchcodec

    As an example, if you performed the following on TorchVision 0.27:

    from torchvision.io import read_video
    frames, audio, info = read_video("video.mp4")

    You would now achieve that with:

    # pip install torchcodec
    from torchcodec.decoders import VideoDecoder
    decoder = VideoDecoder("video.mp4")
    frames = decoder[:]  # or decoder.get_frames_in_range(...), etc.

    See the TorchCodec documentation for tutorials and API references.

Improvements

  • Allow passing interpolation as a string (e.g. "bilinear", "nearest") in resize transforms, in addition to the InterpolationMode enum (#9461)
  • tv_tensors.wrap() now preserves metadata for custom TVTensor subclasses — a subclass can define its own .wrap() method to control how it is re-wrapped (#9490)

Bug fixes

  • Fix F.resize on tv_tensors.Mask to honor NEAREST_EXACT interpolation. Previously the interpolation argument was ignored for mask inputs (resize_mask hardcoded NEAREST), so NEAREST_EXACT silently produced plain NEAREST output (#9497)
  • Fix a GIF decoder bug on malformed GIFs that could write outside the allocated tensor's memory (#9520)

TorchVision 0.27.1 Release

This is a patch release, which is compatible with PyTorch 2.12.1. There are no new features added.

TorchVision 0.27 Release

TorchVision 0.27 is out! This is a small release where the main improvement is the addition of the popular lanczos interpolation mode for the v2.Resize transform on CPU. Results are equivalent to PIL's, but you can expect TorchVision to be faster as it leverages AVX2 (on x86) and NEON paths (on ARM).

Improvements

[transforms] Add support for lanczos interpolation mode (#9459) [transforms] Drastically speed-up Resize on NEON ARM (#9439) [ops] Vectorize masks_to_boxes for performance (#9358) [ops, transforms] Add direct XYWH-CXCYWH conversion for better performance (#9326) [datasets] torchvision.datasets.voc: update dataset and project site URLs (#9216)

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [torchvision](https://github.com/pytorch/vision) from 0.19.1 to 0.28.0.
- [Release notes](https://github.com/pytorch/vision/releases)
- [Commits](pytorch/vision@v0.19.1...v0.28.0)

---
updated-dependencies:
- dependency-name: torchvision
  dependency-version: 0.28.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants