This repository was archived by the owner on Jun 11, 2025. It is now read-only.
Update dependency torchvision to v0.22.1 #102
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.19.1
->0.22.1
Release Notes
pytorch/vision (torchvision)
v0.22.1
: TorchVision 0.22.1 ReleaseCompare Source
Key info
This is a patch release, which is compatible with PyTorch 2.7.1. There are no new features added.
v0.22.0
: Torchvision 0.22 releaseCompare Source
Key info
Detailed Changes
Deprecations
[io] Video decoding and encoding capabilities are deprecated and will be removed soon in 0.25! Please migrate to TorchCodec! (#8997)
Bug Fixes
[io] Fix sync bug with
encode_jpeg
on CUDA (#8929)[transforms]
pin_memory()
now preservesTVTensor
class and metadata (#8921)Improvements
[datasets] Most datasets now support a
loader
parameter, which allow you to decode images directly into tensors withtorchvision.io.decode_image()
, instead of relying on PIL. This should lead to faster pipelines! (#8945, #8972, #8939, #8922)[datasets] Add
classes
attribute to theFlowers102
dataset (#8838)[datasets] Added 'test' split support for Places365 dataset (#8928)
[datasets] Reduce output log on MNIST (#8865)
[ops] Perf: greatly speed-up NMS on CUDA when
num_boxes
is high (#8766, #8925)[ops] Add
roi_align
nondeterministic support for XPU (#8931)[all] Improvements on input checks and error messages (#8959, #8994, #8944, #8995, #8993, #8866, #8882, #8851, #8844, #8991)
[build] Various build improvements / platforms support (#8913, #8933, #8936, #8792)
[docs] Various documentation improvements (#8843, #8860, #9014, #9015, #8932)
[misc] Other non-user-facing changes (#8872, #8982, #8976, #8935, #8977, #8978, #8963, #8975, #8974, #8950, #8970, #8924, #8964, #8996, #8920, #8873, #8876, #8885, #8890, #8901, #8999, #8998, #8973, #8897, #9007, #8852)
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:
Aditya Kamath, Alexandre Ghelfi, PhD, Alfredo Tupone, amdfaa, Andrey Talman, Antoine Simoulin, Aurélien Geron, bjarzemb, deekay42, Frost Mitchell, frost-intel , GdoongMathew, Hangxing Wei, Huy Do, Nicolas Hug, Nikita Shulga, Noopur, Ruben, tvukovic-amd, Wenchen Li, Wieland Morgenstern , Yichen Yan, Yonghye Kwon, Zain Rizvi
v0.21.0
: Torchvision 0.21 releaseCompare Source
Highlights
Image decoding
Torchvision continues to improve its image decoding capabilities. For this version, we added support for HEIC and AVIF image formats. Things are a bit different this time: to enable it, you'll need to
pip install torchvision-extra-decoders
, and the decoders are available in torchvision astorchvision.io.decode_heic()
andtorchvision.io.decode_avif()
. This is still experimental / BETA, so let us know if you encounter any issue.Read more in our docs!
Detailed changes
New Features
[io] Add support for decoding AVIF and HEIC image formats (#8671)
Improvements
[datasets] Don't error when dataset is already downloaded (#8691)
[datasets] Don't print when dataset is already downloaded (#8681)
[datasets] remove printing info in datasets (#8683)
[utils] Add
label_colors
argument todraw_bounding_boxes
(#8578)[models] Add
__deepcopy__
support forDualGraphModule
(#8708)[Docs] Various documentation improvements (#8798, #8709, #8576, #8620, #8846, #8758)
[Code quality] Various code quality improvements (#8757, #8755, #8754, #8689, #8719, #8772, #8774, #8791, #8705)
Bug Fixes
[io] Fix memory leak in
decode_webp
(#8712)[io] Fix pyav 14 compatibility error (#8776)
[models] Fix order of auxiliary networks in googlenet.py (#8743)
[transforms] Fix
adjust_hue
on ARM (#8618)[reference scripts] Fix error when loading the cached dataset in video classification reference(#8727)
[build] fix CUDA build with NVCC_FLAGS in env (#8692)
Tracked Regressions
[build] aarch64 builds are build with manylinux_2_34_aarch64 tag according to auditwheel check (#8883)
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:
amdfaa Andreas Floros, Andrey Talman , Beh Chuen Yang, David Miguel Susano Pinto, GdoongMathew, Jason Chou, Li-Huai (Allan) Lin, Maohua Li, Nicolas Hug , pblwk, R. Yao, sclarkson, vfdev, Ștefan Talpalaru
v0.20.1
Compare Source
v0.20.0
: Torchvision 0.20 releaseCompare Source
Highlights
Encoding / Decoding images
Torchvision is further extending its encoding/decoding capabilities. For this version, we added a WEBP decoder, and a batch JPEG decoder on CUDA GPUs, which can lead to 10X speed-ups over CPU decoding.
We have also improved the UX of our decoding APIs to be more user-friendly. The main entry point is now
torchvision.io.decode_image()
, and it can take as input either a path (as str orpathlib.Path
), or a tensor containing the raw encoded data.Read more on the docs!
We also added support for HEIC and AVIF decoding, but these are currently only available when building from source. We are working on making those available directly in the upcoming releases. Stay tuned!
Detailed changes
Bug Fixes
[datasets] Update URL of SBDataset train_noval (#8551)
[datasets] EuroSAT: fix SSL certificate issues (#8563)
[io] Check average_rate availability in video reader (#8548)
New Features
[io] Add batch JPEG GPU decoding (
decode_jpeg()
) (#8496)[io] Add WEBP image decoder:
decode_image()
,decode_webp()
(#8527, #8612, #8610)[io] Add HEIC and AVIF decoders, only available when building from source (#8597, #8596, #8647, #8613, #8621)
Improvements
[io] Add support for decoding 16bits png (#8524)
[io] Allow decoding functions to accept the mode parameter as a string (#8627)
[io] Allow
decode_image()
to support paths (#8624)[io] Automatically send video to CPU in io.write_video (#8537)
[datasets] Better progress bar for file downloading (#8556)
[datasets] Add Path type annotation for ImageFolder (#8526)
[ops] Register nms and roi_align Autocast policy for PyTorch Intel GPU backend (#8541)
[transforms] Use Sequence for parameters type checking in
transforms.RandomErase
(#8615)[transforms] Support
v2.functional.gaussian_blur
backprop (#8486)[transforms] Expose
transforms.v2
utils for writing custom transforms. (#8670)[utils] Fix f-string in color error message (#8639)
[packaging] Revamped and improved debuggability of setup.py build (#8535, #8581, #8581, #8582, #8590, #8533, #8528, #8659)
[Documentation] Various documentation improvements (#8605, #8611, #8506, #8507, #8539, #8512, #8513, #8583, #8633)
[tests] Various tests improvements (#8580, #8553, #8523, #8617, #8518, #8579, #8558, #8617, #8641)
[code quality] Various code quality improvements (#8552, #8555, #8516, #8526, #8602, #8615, #8639, #8532)
[ci] #8562, #8644, #8592, #8542, #8594, #8530, #8656
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, AJS Payne, Andreas Floros, Andrey Talman, Bhavay Malhotra, Brizar, deekay42, Ehsan, Feng Yuan, Joseph Macaranas, Martin, Masahiro Hiramori, Nicolas Hug, Nikita Shulga , Sergii Dymchenko, Stefan Baumann, venkatram-dev, Wang, Chuanqi
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.