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

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

Merged
merged 4 commits into from
Sep 4, 2024

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.

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
81 of 82 checks passed
@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