Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): update torchvision requirement from <=0.15.2,>=0.8 to >=0.8,<0.17 in /requirements #2157

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 9, 2023

Updates the requirements on torchvision to permit the latest version.

Release notes

Sourced from torchvision's releases.

TorchVision 0.16 - Transforms speedups, CutMix/MixUp, and MPS support!

Highlights

[BETA] Transforms and augmentations

sphx_glr_plot_transforms_getting_started_004

Major speedups

The new transforms in torchvision.transforms.v2 support image classification, segmentation, detection, and video tasks. They are now 10%-40% faster than before! This is mostly achieved thanks to 2X-4X improvements made to v2.Resize(), which now supports native uint8 tensors for Bilinear and Bicubic mode. Output results are also now closer to PIL's! Check out our performance recommendations to learn more.

Additionally, torchvision now ships with libjpeg-turbo instead of libjpeg, which should significantly speed-up the jpeg decoding utilities (read_image, decode_jpeg), and avoid compatibility issues with PIL.

CutMix and MixUp

Long-awaited support for the CutMix and MixUp augmentations is now here! Check our tutorial to learn how to use them.

Towards stable V2 transforms

In the previous release 0.15 we BETA-released a new set of transforms in torchvision.transforms.v2 with native support for tasks like segmentation, detection, or videos. We have now stabilized the design decisions of these transforms and made further improvements in terms of speedups, usability, new transforms support, etc.

We're keeping the torchvision.transforms.v2 and torchvision.tv_tensors namespaces as BETA until 0.17 out of precaution, but we do not expect disruptive API changes in the future.

Whether you’re new to Torchvision transforms, or you’re already experienced with them, we encourage you to start with Getting started with transforms v2 in order to learn more about what can be done with the new v2 transforms.

Browse our main docs for general information and performance tips. The available transforms and functionals are listed in the API reference. Additional information and tutorials can also be found in our example gallery, e.g. Transforms v2: End-to-end object detection/segmentation example or How to write your own v2 transforms.

[BETA] MPS support

The nms and roi-align kernels (roi_align, roi_pool, ps_roi_align, ps_roi_pool) now support MPS. Thanks to Li-Huai (Allan) Lin for this contribution!


Detailed Changes

Deprecations / Breaking changes

All changes below happened in the transforms.v2 and datapoints namespaces, which were BETA and protected with a warning. We do not expect other disruptive changes to these APIs moving forward!

[transforms.v2] to_grayscale() is not deprecated anymore (#7707) [transforms.v2] Renaming: torchvision.datapoints.Datapoint -> torchvision.tv_tensors.TVTensor (#7904, #7894) [transforms.v2] Renaming: BoundingBox -> BoundingBoxes (#7778) [transforms.v2] Renaming: BoundingBoxes.spatial_size -> BoundingBoxes.canvas_size (#7734) [transforms.v2] All public method on TVTensor classes (previously: Datapoint classes) were removed [transforms.v2] transforms.v2.utils is now private. (#7863) [transforms.v2] Remove wrap_like class method and add tv_tensors.wrap() function (#7832)

... (truncated)

Commits
  • fbb4cc5 remove torchvision.prototype module and related tests / CI from release branc...
  • a90e584 [CHERRYPICK] PIL fill len 1 seq / float fill for int images (#7951)
  • eab7cfb Update versions in readme.md (#7941)
  • 704f831 Use regular env setup (#7924)
  • 1044d0f [CHERRYPICK] downgrade warnign for F.rotate with center and expand=True (#7921)
  • d60d5e7 [CHERRYPICK] allow sequence fill for v2 AA scripted (#7920)
  • f588fd1 [Cherry pick] rename BoundingBoxes module to match class name (#7910) (#7918)
  • 6fa2469 Try to turn off DEBUG mode when building for release (#7914)
  • ab6f1ed [Release-Only] Branch Cut - Bump vision Version 0.16.0 (#7913)
  • f1b4c7a Fixed sigma input type for v2.GaussianBlur (#7887)
  • 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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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)

📚 Documentation preview 📚: https://torchmetrics--2157.org.readthedocs.build/en/2157/

@dependabot dependabot bot added the test / CI testing or CI label Oct 9, 2023
@dependabot dependabot bot requested a review from stancld as a code owner October 9, 2023 23:10
@dependabot dependabot bot requested a review from a team October 9, 2023 23:10
@codecov
Copy link

codecov bot commented Oct 10, 2023

Codecov Report

Merging #2157 (01ca0d8) into master (f236a44) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@          Coverage Diff           @@
##           master   #2157   +/-   ##
======================================
  Coverage      87%     87%           
======================================
  Files         293     293           
  Lines       16428   16428           
======================================
  Hits        14284   14284           
  Misses       2144    2144           

@dependabot dependabot bot force-pushed the dependabot-pip-requirements-torchvision-gte-0.8-and-lte-0.16.0 branch from 024492e to 46cf4a8 Compare October 10, 2023 00:31
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.8.0...v0.16.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot-pip-requirements-torchvision-gte-0.8-and-lte-0.16.0 branch from 46cf4a8 to 4e115e0 Compare October 10, 2023 00:36
requirements/detection.txt Outdated Show resolved Hide resolved
requirements/image.txt Outdated Show resolved Hide resolved
@Borda Borda changed the title build(deps): update torchvision requirement from <=0.15.2,>=0.8 to >=0.8,<=0.16.0 in /requirements build(deps): update torchvision requirement from <=0.15.2,>=0.8 to >=0.8,<0.17 in /requirements Oct 10, 2023
@Borda Borda enabled auto-merge (squash) October 10, 2023 00:42
@mergify mergify bot added the ready label Oct 10, 2023
@Borda Borda merged commit 5e58398 into master Oct 10, 2023
72 checks passed
@Borda Borda deleted the dependabot-pip-requirements-torchvision-gte-0.8-and-lte-0.16.0 branch October 10, 2023 10:16
matsumotosan pushed a commit to matsumotosan/metrics that referenced this pull request Oct 14, 2023
…0.8,<0.17 in /requirements (Lightning-AI#2157)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <[email protected]>
Borda pushed a commit that referenced this pull request Nov 30, 2023
…0.8,<0.17 in /requirements (#2157)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <[email protected]>
(cherry picked from commit 5e58398)
Borda pushed a commit that referenced this pull request Dec 1, 2023
…0.8,<0.17 in /requirements (#2157)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <[email protected]>
(cherry picked from commit 5e58398)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready test / CI testing or CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants