dvlab-research / MASA-SR

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

Question about variables in code #22

Closed mrluin closed 2 years ago

mrluin commented 2 years ago

Thanks for your great work!

I have some questions about definition of variables in MASA_arch.py. In forward of class MASA,

  1. What do k_x and k_y mean, different from self.lr_block_size ?
  2. Does diameter_x means the horizontal block size in Ref_LR ?
  3. If k_x and k_y mean block_size, why using kernel_size of (k_x+2, k_y+2) when unfolding LR features, which is in line 374.

Looking forward to your reply and thanks in advance!