-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Allow ToImage
to handle image paths
#8261
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
Comments
Hi @mantasu , thanks for the feature request. Traditionally, the decoding utilities are kept separate from the transforms, as those tend to have fairly different parametrization. Is |
Yeah, I was wondering if this could be added to |
Thanks for understanding @mantasu - yes, let's keep those separate. Our converstion transforms (e.g. ToImage, ToTensor, ToPILImage, etc.) have been the source of a lot of confusion in the past, e.g. |
🚀 The feature
Was just wondering if it was possible to add support for handling image paths when using
ToImage
. Here's the desired feature:Motivation, pitch
This simply allows us to avoid manually loading images, for example in custom Datasets:
Also, would be incredibly handful when using a standalone
to_image
utility.Alternatives
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: