hongyuanyu / SPAN

Swift Parameter-free Attention Network for Efficient Super-Resolution
Apache License 2.0
122 stars 6 forks source link

Pixel artifacts #9

Open reddured opened 1 month ago

reddured commented 1 month ago

Thank you for this great model which performs very quickly. I notice a significant issue that could be related to rgb_mean and img_range values. When using your pretrained model spanx4_ch48.pth, upscaled image almost always contain pixel artifacts that make final picture unusable (see image) :

image

How can I solve this problem ? Thanks.

ZHAOZHIHAO commented 1 month ago

When I use their codes, I normalize the image as in their codes but don't do de-normalization, but clip the output to [0, 1]. By doing so, the output looks good to me.