Mukosame / Zooming-Slow-Mo-CVPR-2020

Fast and Accurate One-Stage Space-Time Video Super-Resolution (accepted in CVPR 2020)
GNU General Public License v3.0
908 stars 165 forks source link

Regarding downsampling #56

Closed saikatdutta closed 3 years ago

saikatdutta commented 3 years ago

I was wondering if "generate_mod_LR_bic.py" and MATLAB imresize function generate similar downsampled images. More clearly, I want to know if I would find a performance difference if I use the MATLAB script to downsample instead of the python script (given that I use the given pretrained model for inference).

Mukosame commented 3 years ago

Hi @saikatdutta , this script is originally from BasicSR(https://github.com/xinntao/BasicSR/pull/135). I asked Xintao when writing this script and got a positive answer: the function we called in the script performs the same as MATLAB imresize, while the other resize functions in OpenCV and PyTorch do not. In my experience, I have many train/test sets using both MATLAB and this script. They can be mixed without obvious kernel mismatching observed. A lot of people ignore this problem in their papers. Glad you ask it!