sanghyun-son / EDSR-PyTorch

PyTorch version of the paper 'Enhanced Deep Residual Networks for Single Image Super-Resolution' (CVPRW 2017)
MIT License
2.42k stars 668 forks source link

psnr calculate #288

Closed ZiaZhang closed 3 years ago

ZiaZhang commented 3 years ago

Thanks for sharing your code. In the calc_psnr function,why do the RGB image need to be divided by 3? (diff = (sr - hr).data.div(rgb_range))

Doreenqiuyue commented 3 years ago

Do you understand it ?