chore(deps): update dependency torchvision to v0.18.0
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| torchvision | ==0.16.0 -> ==0.18.0 |
Release Notes
pytorch/vision (torchvision)
v0.18.0: TorchVision 0.18 Release
BC-Breaking changes
[datasets] gdown is now a required dependency for downloading datasets that are on Google Drive. This change was actually introduced in 0.17.1 (repeated here for visibility) (#β8237)
[datasets] The StanfordCars dataset isnβt available for download anymore. Please follow these instructions to manually download it (#β8309, #β8324)
[transforms] to_grayscale and corresponding transform now always return 3 channels when num_output_channels=3 (#β8229)
Bug Fixes
[datasets] Fix download URL of EMNIST dataset (#β8350)
[datasets] Fix root path expansion in Kitti dataset (#β8164)
[models] Fix default momentum value of BatchNorm2d in MaxViT from 0.99 to 0.01 (#β8312)
[reference scripts] Fix CutMix and MixUp arguments (#β8287)
[MPS, build] Link essential libraries in cmake (#β8230)
[build] Fix build with ffmpeg 6.0 (#β8096)
New Features
[transforms] New GrayscaleToRgb transform (#β8247) [transforms] New JPEG augmentation transform (#β8316)
Improvements
[datasets, io] Added pathlib.Path support to datasets and io utilities. (#β8196, #β8200, #β8314, #β8321)
[datasets] Added allow_empty parameter to ImageFolder and related utils to support empty classes during image discovery (#β8311)
[datasets] Raise proper error in CocoDetection when a slice is passed (#β8227)
[io] Added support for EXIF orientation in JPEG and PNG decoders (#β8303, #β8279, #β8342, #β8302)
[io] Avoiding unnecessary copies on io.VideoReader with pyav backend (#β8173)
[transforms] Allow SanitizeBoundingBoxes to sanitize more than labels (#β8319)
[transforms] Add sanitize_bounding_boxes kernel/functional (#β8308)
[transforms] Make perspective more numerically stable (#β8249)
[transforms] Allow 2D numpy arrays as inputs for to_image (#β8256)
[transforms] Speed-up rotate for 90, 180, 270 degrees (#β8295)
[transforms] Enabled torch compile on affine transform (#β8218)
[transforms] Avoid some graph breaks in transforms (#β8171)
[utils] Add float support to draw_keypoints (#β8276)
[utils] Add visibility parameter to draw_keypoints (#β8225)
[utils] Add float support to draw_segmentation_masks (#β8150)
[utils] Better show overlap section of masks in draw_segmentation_masks (#β8213)
[Docs] Various documentation improvements (#β8341, #β8332, #β8198, #β8318, #β8202, #β8246, #β8208, #β8231, #β8300, #β8197)
[code quality] Various code quality improvements (#β8273, #β8335, #β8234, #β8345, #β8334, #β8119, #β8251, #β8329, #β8217, #β8180, #β8105, #β8280, #β8161, #β8313)
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 Dangoor Ahmad Sharif , ahmadsharif1, Andrey Talman, Anner, anthony-cabacungan, Arun Sathiya, Brizar, Brizar , cdzhan, Danylo Baibak, Huy Do, Ivan Magazinnik, JavaZero, Johan Edstedt, Li-Huai (Allan) Lin, Mantas, Mark Harfouche, Mithra, Nicolas Hug, Nicolas Hug , nihui, Philip Meier, Philip Meier , RazaProdigy , Richard Barnes , Riza Velioglu, sam-watts, Santiago Castro, Sergii Dymchenko, Syed Raza, talcs, Thien Tran, Thien Tran , TilmannR, Tobias Fischer, vfdev, vfdev , Zhu Lin Ch'ng, ZoltΓ‘n BΓΆszΓΆrmΓ©nyi.
v0.17.2: TorchVision 0.17.2 Release
This is a patch release, which is compatible with PyTorch 2.2.2. There are no new features added.
v0.17.1: TorchVision 0.17.1 Release
This is a patch release, which is compatible with PyTorch 2.2.1.
Bug Fixes
- Add
gdowndependency to support downloading datasets from Google Drive (https://github.com/pytorch/vision/pull/8237) - Fix silent correctness with
convert_bounding_box_formatwhen passing string parameters (https://github.com/pytorch/vision/issues/8258)
v0.17.0: TorchVision 0.17 Release
Highlights
The V2 transforms are now stable!
The torchvision.transforms.v2 namespace was still in BETA stage until now. It is now stable! 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.
Towards torch.compile() support
We are progressively adding support for torch.compile() to torchvision interfaces, reducing graph breaks and allowing dynamic shape.
The torchvision ops (nms, [ps_]roi_align, [ps_]roi_pool and deform_conv_2d) are now compatible with torch.compile and dynamic shapes.
On the transforms side, the majority of low-level kernels (like resize_image() or crop_image()) should compile properly without graph breaks and with dynamic shapes. We are still addressing the remaining edge-cases, moving up towards full functional support and classes, and you should expect more progress on that front with the next release.
Detailed Changes
Breaking changes / Finalizing deprecations
- [transforms] We changed the default of the
antialiasparameter from None to True, in all transforms that perform resizing. This change of default has been communicated in previous versions, and should drastically reduce the amount of bugs/surprises as it aligns the tensor backend with the PIL backend. Simply put: from now on, antialias is always applied when resizing (with bilinear or bicubic modes), whether you're using tensors or PIL images. This change only affects the tensor backend, as PIL always applies antialias anyway. (#β7949) - [transforms] We removed the
torchvision.transforms.functional_tensor.pyandtorchvision.transforms.functional_pil.pymodules, as these had been deprecated for a while. Use the public functionals fromtorchvision.transforms.v2.functionalinstead. (#β7953) - [video] Remove deprecated path parameter to VideoReader and made src mandatory (#β8125)
- [transforms]
to_pil_imagenow provides the same output for equivalent numpy arrays and tensor inputs (#β8097)
Bug Fixes
[datasets] Fix root path expansion in datasets.Kitti (#β8165) [transforms] allow sequence fill for v2 AA scripted (#β7919) [reference scripts] Fix quantized references (#β8073) [reference scripts] Fix IoUs reported in segmentation references (#β7916)
New Features
[datasets] add Imagenette dataset (#β8139)
Improvements
[transforms] The v2 transforms are now officially stable and out of BETA stage (#β8111)
[ops] The ops ([ps_]roi_align, ps_[roi_pool], deform_conv_2d) are now compatible with torch.compile and dynamic shapes (#β8061, #β8049, #β8062, #β8063, #β7942, #β7944)
[models] Allow custom atrous_rates for deeplabv3_mobilenet_v3_large (#β8019)
[transforms] allow float fill for integer images in F.pad (#β7950)
[transforms] allow len 1 sequences for fill with PIL (#β7928)
[transforms] allow size to be generic Sequence in Resize (#β7999)
[transforms] Making root parameter optional for Vision Dataset (#β8124)
[transforms] Added support for tv tensors in torch compile for func ops (#β8110)
[transforms] Reduced number of graphs for compiled resize (#β8108)
[misc] Various fixes for S390x support (#β8149)
[Docs] Various Documentation enhancements (#β8007, #β8014, #β7940, #β7989, #β7993, #β8114, #β8117, #β8121, #β7978, #β8002, #β7957, #β7907, #β8000, #β7963)
[Tests] Various test enhancements (#β8032, #β7927, #β7933, #β7934, #β7935, #β7939, #β7946, #β7943, #β7968, #β7967, #β8033, #β7975, #β7954, #β8001, #β7962, #β8003, #β8011, #β8012, #β8013, #β8023, #β7973, #β7970, #β7976, #β8037, #β8052, #β7982, #β8145, #β8148, #β8144, #β8058, #β8057, #β7961, #β8132, #β8133, #β8160)
[Code Quality] (#β8077, #β8070, #β8004, #β8113,
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:
Aleksei Nikiforov. Alex Wei, Andrey Talman, Chunyuan WU, CptCaptain, Edward Z. Yang, Gu Wang, Haochen Yu, Huy Do, Jeff Daily, Josh Levy-Kramer, moto, Nicolas Hug, NVS Abhilash, Omkar Salpekar, Philip Meier, Sergii Dymchenko, Siddharth Singh, Thiago Crepaldi, Thomas Fritz, TilmannR, vfdev-5, Zeeshan Khan Suri.
v0.16.2: TorchVision 0.16.2 Release
This is a patch release, which is compatible with PyTorch 2.1.2. There are no new features added.
v0.16.1: TorchVision 0.16.1 Release
This is a minor release that only contains bug-fixes
Bug Fixes
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.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.