We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
torchvision.io.read_image()
PosixPath
What do you think about supporting PosixPath objects while reading the images with io.read_image ?
io.read_image
from pathlib import Path import torchvision.io as io p = Path("test-image.jpg") assert p.exists() mode = io.ImageReadMode.RGB tensor = io.read_image(p, mode)
Today, it fails with the following error:
RuntimeError: image::read_file() Expected a value of type 'str' for argument '_0' but instead found type 'PosixPath'.
No response
The text was updated successfully, but these errors were encountered:
Duplicate : #2962
Sorry, something went wrong.
No branches or pull requests
🚀 The feature
What do you think about supporting
PosixPath
objects while reading the images withio.read_image
?Today, it fails with the following error:
Motivation, pitch
Alternatives
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: