wustl-cig / DRP

8 stars 1 forks source link

test on 4x sisr #2

Closed ChongWang1024 closed 5 months ago

ChongWang1024 commented 6 months ago

Hi, Thanks for sharing the code for this interesting work. When I run 4x sisr (directly modifying sf=4 in _DRP_sisr_2xk1.py), it reports an error as below. This error seems to be related to imresize function in _utilsr.py, could you please help me figure out it? Many thanks in advance! image

Hu-Yuyang commented 5 months ago

Thank you for taking the time to read our paper! The 'imresize' function used in this file mirrors the 'imresize' function of the MATLAB version, supporting bicubic down/super-resolution. You have the flexibility to interchange the 'imresize' function with alternative bicubic resize functions available in different packages.

Moreover, if you wish to adapt this version of 'imresize' for 4x down-resolution for this setting directly, consider increasing the kernel_width parameter from 4 to 5 or beyond.

ChongWang1024 commented 5 months ago

Got it! Thank you so much. That completely addressed my issue.