dvlab-research / MASA-SR

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

问题请教 #34

Open EchoXu98 opened 1 year ago

EchoXu98 commented 1 year ago
    ## crop corresponding ref patches
    index = ind_l[:, :, 0] 
    idx_x = index % Wr  
    idx_y = index // Wr 

请问下,在MASA_arch.py文件中的第412-415行代码中(如上所示),这里的idx_x = index % Wr和idx_y = index // Wr代表什么意思?

EchoXu98 commented 1 year ago

@SkyeLu

yukeyiniupi commented 1 year ago

@SkyeLu

为了得到ref patches的坐标