-
Notifications
You must be signed in to change notification settings - Fork 7k
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
[Feature Request] Datasets Should Use New torchvision.io
Image Loader APIs and Return TVTensor
Images by Default
#8762
Comments
Hi @fang-d , thank you for the feature request. This is a great idea, and I think the torchvision decoders are in a stable enough state to enable this now. We already support the I think the way to go would probably be to add that
|
🚀 The feature
torchvision.io
APIs (See: Release Notes v0.20) and enable it by default.TVTensor
images by default instead ofPIL.Image
.Motivation, pitch
torchvision.io
APIs that enhance its encoding/decoding capabilities.PIL.Image
by default, but the first step of transforms is usuallytransforms.ToImage()
.torchvision.io
APIs.torchvision.io
APIs.Alternatives
PIL.Image
when using the PIL or the accimage backends, and beTVTensor
if using new APIs (may lose consistency).Additional context
I would like to make a pull request if the community likes this feature.
The text was updated successfully, but these errors were encountered: