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

PSNR, SSIM calculation #167

Open
ryanlu2240 opened this issue Jul 14, 2024 · 1 comment
Open

PSNR, SSIM calculation #167

ryanlu2240 opened this issue Jul 14, 2024 · 1 comment

Comments

@ryanlu2240
Copy link

Hi, thanks for such a convenient evaluation tool!
I want to ask about the calculation for PSNR and SSIM. Is it calculated on the Y channel in the YCbCr color space or on RGB channels?

@chaofengc
Copy link
Owner

Thanks to your interest! By default, SSIM uses YCbCr space and PSNR uses RGB space. Alternatively, you can pass the create_metric('psnr', test_y_channel=True) to control it.

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