alterzero / RBPN-PyTorch

The project is an official implement of our CVPR2019 paper "Recurrent Back-Projection Network for Video Super-Resolution"
https://alterzero.github.io/projects/RBPN.html
MIT License
449 stars 104 forks source link

Why didn't rescale flow into (0,1) by default? #17

Closed babyformula closed 5 years ago

babyformula commented 5 years ago

Hi, thanks for sharing.

There's a doubt when training about the function get_flow(). I got the three model inputs (img, neighbor, flow), of which the img and the neighbor seems valued between (0,1). But the flow concatenated by u,v seems almost (3.xxx, 9.xxx ), and also the rescale_flow function is commented by default.

It would be appreciated if you could like share the related thoughts. Thanks

alterzero commented 5 years ago

I noticed this as well. It’s a difficult question in case of optical flow and might need more investigation.

I have tried to rescale the flow into [-1,1] where max and min displacement are 40,-40. Basically the max and min displacement should be calculated for whole batch to prevent losing some scales. However, the results are substantially the same with the current approach (without rescale).