xinntao / EDVR

Winning Solution in NTIRE19 Challenges on Video Restoration and Enhancement (CVPR19 Workshops) - Video Restoration with Enhanced Deformable Convolutional Networks. EDVR has been merged into BasicSR and this repo is a mirror of BasicSR.
https://github.com/xinntao/BasicSR
1.48k stars 320 forks source link

How to set align_corners( True or False) when using nn.functional.interpolate? (for example, in EDVR_arch.py, align_corners =False) #133

Closed ljmiao closed 4 years ago

ljmiao commented 4 years ago

in EDVR_arch.py and SRResNet_arch.py, align_corners is set to be False, while in TOF_arch.py, align_corners is set to be True, is there any reason for this?

ckkelvinchan commented 4 years ago

For TOFlow, we tested the converted model with both settings and found that aligned_corners=True gives a better result. We therefore use aligned_corners=True for TOFlow.

ljmiao commented 4 years ago

Got it! thanks