Skip to content

build: update torchvision requirement from <0.24.0,>=0.22.0 to >=0.22.0,<0.27.0#626

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/pip/torchvision-gte-0.22.0-and-lt-0.27.0
Open

build: update torchvision requirement from <0.24.0,>=0.22.0 to >=0.22.0,<0.27.0#626
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/pip/torchvision-gte-0.22.0-and-lt-0.27.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Apr 13, 2026

Updates the requirements on torchvision to permit the latest version.

Release notes

Sourced from torchvision's releases.

TorchVision 0.26 Release

TorchVision 0.26 is out! It is compatible with torch 2.11. It's a small release that comes with the following changes:

Breaking changes and deprecations

The video decoding and encoding utilities of TorchVision, which have been deprecate for a long time, are now removed. This includes torchvision.io.video.*, read_video, write_video, the VideoReader class, etc. Users are encouraged to switch to TorchCodec, which is faster and more stable.

The rare torchvision utilities that were still relying on video decoding (like the video datasets) have been transparently migrated to TorchCodec.

Note: the image decoders and encoders are staying in TorchVision.

(#9341, #9421, #9370, #9366)

Improvements

[ops] Speed up masks_to_boxes on CPU and GPU (#9358) [ops] Improve runtime complexity of roi_align on MPS (#9100)

Various code quality improvements (#8760, #9364, #9317, #9359, #9334, #9286, #9327) Various documentation improvements (#9339, #9374, #9323, #9324, #8879, #9350)

Bug Fixes

[transforms] Fix edge case conversion from CXCYWH to XYXY for integer bounding boxes in F.convert_bounding_box_format (#9322) [transforms] Fix tv_tensors.wrap to preserve subclass types for BoundingBoxes and KeyPoints (#9332) [transforms] Fix incorrect normalization axis in v2.ElasticTransform (#9300) [ops] Fix masks_to_boxes for empty masks (#9357) [io] Fix CPU jpeg and png decoder/encoder error-path leak on malformed inputs (#9434)

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:

Adam J. Stewart, Andrey Talman, Jaebeom, MPSFuzz , Murat Raimbekov, Nicolas Hug, ribbon-otter , Roy Hvaara, Salman Chishti, Scott Todd, Zhitao Yu

Commits
  • 336d36e [Cherry-pick for 0.26] Fix CPU decode_jpeg error-path leak on malformed JPEGs...
  • 4fe736f [Cherry-pick for 0.26] Remove rest of video decoder APIs (#9421)
  • 31d3aa3 [Release 0.26] update test-infra refs and version (#9390)
  • 186879a [Release 0.26] remove CVCUDA stuff - not yet ready for release (#9389)
  • b29ac89 [Release 0.26] remove prototype (#9388)
  • 0f6d91d Vectorize masks_to_boxes for performance (#9358)
  • 326a11d ElasticTransform docs: fix issue#8879 (#9350)
  • 74d1285 Fix CXCYWH to XYXY conversion for integer bounding boxes (#9322)
  • 6940e19 add warning for CelebA bbox data (#9339)
  • 4b0a90c Update version to 0.26.0a0 (#9376)
  • Additional commits viewable in compare view

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)

Updates the requirements on [torchvision](https://github.com/pytorch/vision) to permit the latest version.
- [Release notes](https://github.com/pytorch/vision/releases)
- [Commits](pytorch/vision@v0.22.0...v0.26.0)

---
updated-dependencies:
- dependency-name: torchvision
  dependency-version: 0.26.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit fef9663. Configure here.

"intel-extension-for-pytorch>=2.7.0",
"torch>=2.7.0,<2.9.0",
"torchvision>=0.22.0,<0.24.0",
"torchvision>=0.22.0,<0.27.0",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Torchvision upper bound misaligned with torch constraint

Medium Severity

The intel extra pins torch>=2.7.0,<2.9.0 but now allows torchvision>=0.22.0,<0.27.0. Torchvision is tightly coupled with torch (0.22→2.7, 0.23→2.8, 0.24→2.9, 0.25→2.10, 0.26→2.11), so torchvision versions 0.24–0.26 are incompatible with the torch<2.9.0 constraint. The previous upper bound of <0.24.0 was correctly aligned. This will cause dependency resolution failures or runtime incompatibilities for users of the intel extra.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit fef9663. Configure here.

@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants