Open gsygsy96 opened 4 years ago
When I use bilinear, everything is ok. Help someone can given me the answer.
Maybe related to #32918. To make sure though: is content.png
a 256x256
image?
Maybe related to #32918. To make sure though: is
content.png
a256x256
image?
The content.png
is an 1024 x 1024
image.
Also, in my training script, if I first interpolate images(Bx3x256x256
) with bicubic
mode and scale_factor=1
and then interpolate the results again using bicubic
and scale_factor != 1
, the final results will be left rotated 90 degrees.
PS: if the first interpolation is bilinear
or the seconde interpolation use scale_factor = 1
, everything will be ok.
🐛 Bug
Input: X with shape (2,3,256,256) RUN: Y = F.interpolate(X, [256,256], mode='bicubic', align_corners=True) Z = F.interpolate(Y, [256,256], mode='bicubic', align_corners=True) ISSUE: Y[1,:,:,:] = zeros and Z[1,:,:,:] = zeros.
Following is my code:
Environment: pytorch 1.1.0 torchvision 0.2.2.post3 scikit-image 0.15.0 python3