We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ToImage()
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
Setting a 1D tensor to ToImage() gets the empty error message as shown below:
from torchvision.datasets import OxfordIIITPet import torch my_data = OxfordIIITPet( root="data" ) ti = ToImage() ti(torch.tensor([0])) # Error
ValueError:
So, it should be something like below:
ValueError: the tensor must be 2D or more D tensor
import torchvision torchvision.__version__ # '0.20.1'
The text was updated successfully, but these errors were encountered:
Sure, happy to consider a PR @hyperkai .
Sorry, something went wrong.
Hi all, I have a fix ready that adds the suggested error message. Should I go ahead and submit a PR?
No branches or pull requests
🐛 Describe the bug
Setting a 1D tensor to ToImage() gets the empty error message as shown below:
So, it should be something like below:
Versions
The text was updated successfully, but these errors were encountered: