The-Learning-And-Vision-Atelier-LAVA / DASR

[CVPR 2021] Unsupervised Degradation Representation Learning for Blind Super-Resolution
MIT License
388 stars 50 forks source link

PSNR and SSIM #14

Closed wangchust closed 3 years ago

wangchust commented 3 years ago

Hi, author. Thank you for your excellent work. But I'm a little confused about the code which calculate PSNR and SSIM metric. For PSNR, why the diff is multipide by a convert coefficient and shave the border when benchmarch is set to True. For SSIM, why not directly use api from skimage? Waiting for your response, sincerely.

LongguangWang commented 3 years ago

Hi @wangchust, thanks for your interest in our work. We follow the settings widely used in existing SR methods (e.g., RCAN) for performance evaluation. The convert coefficients are used to calculate the luminance channel and the borders are shaved for fair comparison. For SSIM, we modified the code from BasicSR.

wangchust commented 3 years ago

I've got it. Thanks for yours explanation