Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get the objective quality(PSNR/SSIM) #18

Open
Berlin0610 opened this issue Jan 10, 2022 · 2 comments
Open

Cannot get the objective quality(PSNR/SSIM) #18

Berlin0610 opened this issue Jan 10, 2022 · 2 comments

Comments

@Berlin0610
Copy link

Hi, Longguang,

Thank your for providing the resource code and the pre-trained model. It is a wonderful and elegant work. However, when I use the pre-trained model or the retrained model according to your training code to test the Set5 dataset, there are some problems as follows:

  1. Compared with the bucubic method, the pre-trained or retrained model cannot get good the objective quality in terms of PSNR and SSIM. It is X2 super-resolution. The related data is attached. I don't know why this result is so strange.

psnr
ssim

  1. It should be mentioned that the subjective quality of the super-resolution image from pretrained or retrained model is obviously better than that from bicubic.

  2. In addition, when I have this problem, I tested these model in some other images( not public). And the related results are similar as above mentioned. The traditional quality measures cannot have good performance, while the subjective quality is better than bicubic.

As a result, I am confused why this happened. Sincerely hope that I can get your help at your convenience.

Regards,
Bolin

@hahazh
Copy link

hahazh commented May 1, 2022

hi, I think I got the reason!
UserWarning: Default grid_sample and affine_grid behavior has changed to align_corners=False since 1.3.0. Please specify align_corners=True if the old behavior is desired. See the documentation of grid_sample for details.
you may specify align_corners=True .
And if you use a custom dataset, you need to recalculate RGB_mean.

@Alethiea-Cheng
Copy link

hi, I think I got the reason! UserWarning: Default grid_sample and affine_grid behavior has changed to align_corners=False since 1.3.0. Please specify align_corners=True if the old behavior is desired. See the documentation of grid_sample for details. you may specify align_corners=True . And if you use a custom dataset, you need to recalculate RGB_mean.

cool, that is a really detail I might digged into so long.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants