The-Learning-And-Vision-Atelier-LAVA / ArbSR

[ICCV 2021] Learning A Single Network for Scale-Arbitrary Super-Resolution

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

doubt regarding computation of LR space and HR space

nanmehta opened this issue · comments

Hi thanks for your such interesting work, Can you please tell me why we need to subtract 0.5 and while calculating the coordinates in LR space.
coor_h = ((coor_hr[0] + 0.5) / scale) - (torch.floor((coor_hr[0] + 0.5) / scale + 1e-3)) - 0.5

Hi @nan-rock, please refer to Fig. 5(a) in the paper. Here, -0.5 is used to calculate L(x).