You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Look at torchvision.transforms.functional.affine
the documentation says under parameters:
img (PIL Image or Tensor) – image to be rotated.
But when you actually use a tensor as input using the official pywheel torchvision0.7cu101 package a tensor import is not supported if you look at the source code torchvision/transforms/functional.py from the installed package, there is a line like this:
if not _is_pil_image(img):
raise TypeError('img should be PIL Image. Got {}'.format(type(img)))
Also that source code from the installed package for the function does not match the source link in the pytorch.,org online documentation
The text was updated successfully, but these errors were encountered:
Looks like for the last release, the vision docs were pinned to another version instead of release/0.7. I'll check if there is any issue reversing that and if not, re-build the docs based off of stable
📚 Documentation
If you check the documentation on pytorch.org go to Libraries torchvision/ transforms / functional transforms
https://pytorch.org/docs/stable/torchvision/transforms.html#functional-transforms
Look at torchvision.transforms.functional.affine
the documentation says under parameters:
img (PIL Image or Tensor) – image to be rotated.
But when you actually use a tensor as input using the official pywheel torchvision0.7cu101 package a tensor import is not supported if you look at the source code torchvision/transforms/functional.py from the installed package, there is a line like this:
if not _is_pil_image(img):
raise TypeError('img should be PIL Image. Got {}'.format(type(img)))
Also that source code from the installed package for the function does not match the source link in the pytorch.,org online documentation
The text was updated successfully, but these errors were encountered: