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
IMO, shouldn't v2 behave the same as v1. If their bahaviors are not expected to be the same, shouldn't v2 at least tell users resizing doesn't take effect?
Versions
torchvision 0.21.0
The text was updated successfully, but these errors were encountered:
numpy array aren't supported by torchvision's transforms, and they're treated as foreign types (just like int, str, etc.). So on v1 you pass a foreign type and you get an error. On v2, those foreign types are passed-through, which is useful e.g. to keep track of metadata associated with files, like their path, or anything else.
🐛 Describe the bug
Test codes
The expected output of the test codes is a (1, 224, 224) tensor. When input is an numpy.ndarray, transforms.Resize raises
While transforms.v2.Resize silently runs the code without resizing the input
IMO, shouldn't v2 behave the same as v1. If their bahaviors are not expected to be the same, shouldn't v2 at least tell users resizing doesn't take effect?
Versions
torchvision 0.21.0
The text was updated successfully, but these errors were encountered: