dvlab-research / MASA-SR

MASA-SR: Matching Acceleration and Spatial Adaptation for Reference-Based Image Super-Resolution (CVPR2021)
161 stars 20 forks source link

Error : in MASA_arch.py #24

Closed jeonghomin closed 1 year ago

jeonghomin commented 2 years ago

image RefSR/MASA-SR/models/archs/MASA_arch.py", line 435, in forward warp_ref_patches_x1 = warp_ref_patches_x1.view(N, C, H, W) RuntimeError: shape '[1, 64, 228, 228]' is invalid for input of size 3211264

it keeps making error..

Do you know why this occurs?

SkyeLu commented 2 years ago

Are you testing on your own data? If so, the LR and Ref image should be padded if they are not multiples of a number (8/16/32..., depending on the value of the hyper-parameter 'window size').

jeonghomin commented 1 year ago

image RefSR/MASA-SR/models/archs/MASA_arch.py", line 435, in forward warp_ref_patches_x1 = warp_ref_patches_x1.view(N, C, H, W) RuntimeError: shape '[1, 64, 228, 228]' is invalid for input of size 3211264

it keeps making error..

Do you kno