pytorch / vision

Datasets, Transforms and Models specific to Computer Vision
https://pytorch.org/vision
BSD 3-Clause "New" or "Revised" License
16.26k stars 6.96k forks source link

Allow decoding functions to accept the mode parameter as a string #8627

Closed NicolasHug closed 2 months ago

NicolasHug commented 2 months ago

Closes https://github.com/pytorch/vision/issues/8625

the mode parameter of decoding functions can now be passed as a string, instead of just as an enum. Also added RGBA as an alias of RGB_ALPHA.

pytorch-bot[bot] commented 2 months ago

:link: Helpful Links

:test_tube: See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/8627

Note: Links to docs will display an error until the docs builds have been completed.

:white_check_mark: You can merge normally! (1 Unrelated Failure)

As of commit 005f094b0159bf32f8ce4aa7ec4fde3d2632c943 with merge base d0ebeb55573820df89fa24f6418b9e624683932d (image):

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

* [Tests / unittests-windows (3.9, windows.g5.4xlarge.nvidia.gpu, cuda, 11.8) / windows-job](https://hud.pytorch.org/pr/pytorch/vision/8627#29625825837) ([gh](https://github.com/pytorch/vision/actions/runs/10686953132/job/29625825837)) ([trunk failure](https://hud.pytorch.org/pytorch/vision/commit/d0ebeb55573820df89fa24f6418b9e624683932d#29626014507)) `AttributeError: '_OpNamespace' 'image' object has no attribute '_jpeg_version'`

This comment was automatically generated by Dr. CI and updates every 15 minutes.