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

EDVR seems not working on 90*160 images #120

Open lancasterJie opened 4 years ago

lancasterJie commented 4 years ago

Hi xintao:

When I input 90*160 images, it outputs shape[1 5 -1 22 40] is invalid for the input of size 294400, I know the error comes from 90 can not be divided with no reminder. Except for inputting the integer multiple of 4, could u please give us some advice to make it work?

Thank U

jie

aligoglos commented 4 years ago

I have same problem. It seems EDVR architecture has problem with FullHD and all different resolutions relate to this aspect ratio.

xinntao commented 4 years ago

A simple solution is to pad the input frames to have sizes of multiple of 4. After processing, crop the extra padded pixels.