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

The model uses image patch as input, how to calculate the PSNR value of the whole image #4

Closed
GZ-T opened this issue Jun 24, 2021 · 2 comments

Comments

@GZ-T
Copy link

GZ-T commented Jun 24, 2021

Hi, I'm a beginner of image super resolution, thank you for your great job, which has taught me a lot. I have a problem with calculating the PSNR value of the whole image, I have a question about calculating the PSNR value of the whole image. Do you calculate the PSNR value of each patch in an image first and then average it to get the PSNR value of the whole image,and how to deal with the problem that the image size can't divide the crop size?

@LongguangWang
Copy link
Member

Hi @GZ-T, thanks for your interest in our work. We crop patches to train our SR network but feed the whole image to the network for evaluation during test phase. Consequently, the PSNR value is calculated directly over the whole image.

@GZ-T
Copy link
Author

GZ-T commented Jun 30, 2021

Thank you for your answer, it's very helpful to me.

@GZ-T GZ-T closed this as completed Jul 29, 2021
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

2 participants