sanghyun-son / EDSR-PyTorch

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

edsr checkerboarding issues #219

Closed makslevental closed 4 years ago

makslevental commented 4 years ago

how did you deal with checkerboarding? all of your trained models show checkerboarding

original

image

upscale 4x

image

makslevental commented 4 years ago

actually the issue was that i wasn't passing in uint8 but floats. it's interesting to me though that this brought out checkerboarding

a-sansanwal commented 4 years ago

@makslevental can you elaborate on your fix ?

makslevental commented 4 years ago

@a-sansanwal rescale the pixels to [0,255]