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
Meaning, #7271 did its job, but we need to expand it to the PIL kernel as well.
The issue is that center theoretically should have no effect on the output size if expand=True is given. Practically, rounding effects take place which lead the off-by-one errors. The difference between v1 and v2 is that we not only warn users about setting both parameters
Replacing the import with
from torchvision.transforms import functional as F
, i.e. using transforms v1, does not have this problem.The text was updated successfully, but these errors were encountered: