Skip to content

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

Merged
NicolasHug merged 4 commits intopytorch:mainfrom
NicolasHug:rgbaaaa
Sep 4, 2024
Merged

Allow decoding functions to accept the mode parameter as a string#8627
NicolasHug merged 4 commits intopytorch:mainfrom
NicolasHug:rgbaaaa

Conversation

@NicolasHug
Copy link
Member

Closes #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
Copy link

pytorch-bot bot commented Sep 3, 2024

🔗 Helpful Links

🧪 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.

✅ You can merge normally! (1 Unrelated Failure)

As of commit 005f094 with merge base d0ebeb5 (image):

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

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

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

@NicolasHug NicolasHug changed the title Allow decode_image to support paths Allow decoding functions to accept the mode parameter as a string Sep 3, 2024
@NicolasHug NicolasHug merged commit 838ad6c into pytorch:main Sep 4, 2024
@NicolasHug NicolasHug deleted the rgbaaaa branch September 4, 2024 10:38
facebook-github-bot pushed a commit that referenced this pull request Sep 13, 2024
…tring (#8627)

Reviewed By: vmoens

Differential Revision: D62581688

fbshipit-source-id: 47f2b7b791148279dcb1d01313be11ecabacb5fb
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.

ImageReadMode should support strings

2 participants