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

About the calculation of PSNR and SSIM #38

Open
RICKand-MORTY opened this issue Oct 22, 2024 · 1 comment
Open

About the calculation of PSNR and SSIM #38

RICKand-MORTY opened this issue Oct 22, 2024 · 1 comment

Comments

@RICKand-MORTY
Copy link

Hi, when I use test.py to evaluate the PSNR and SSIM of the results, I have encountered an error while executing the code:
ssim_val_rgb.append(ssim_loss(gray_restored, gray_gt, channel_axis=None))
the error message is:
ValueError: Since image dtype is floating point, you must specify the data_range parameter. Please read the documentation carefully (including the note). It is recommended that you always specify the data_range anyway.
I think that it need to specify the parameter of data_range, could you please provide this parameter,thanks!

@RICKand-MORTY
Copy link
Author

I installed an earlier package of the to ensure the progress of the evaluation, I evaluated the model on ISTD+ dataset but the results were pretty strange, Is there anything I forgot or made a mistake? My results on ISTD+ are the following:
PSNR: 25.448642, SSIM: 0.951459, RMSE: 7.791862 SPSNR: 33.511993, SSSIM: 0.988814, SRMSE: 9.262710 NSPSNR: 26.501147, NSSSIM: 0.963846, NSRMSE: 7.612985

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

1 participant