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
The error message you're seeing comes from PIL, not from torchvision. You passed a PIL image and for PIL images, NEAREST is equivalent to NEAREST_EXACT (they will be slightly different for tensors).
🐛 Describe the bug
Setting
InterpolationMode.BOX
tointerpolation
argument of RandomRotation() gets the error message as shown below:But setting
InterpolationMode.NEAREST_EXACT
tointerpolation
argument ofRandomRotation()
works against the error message as shown below:So, the error message should also have
Image.Resampling.NEAREST_EXACT (1)
as shown below:Versions
The text was updated successfully, but these errors were encountered: