IQA-PyTorch icon indicating copy to clipboard operation
IQA-PyTorch copied to clipboard

PSNR, SSIM calculation

Open ryanlu2240 opened this issue 1 year ago • 1 comments

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?

ryanlu2240 avatar Jul 14 '24 06:07 ryanlu2240

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.

chaofengc avatar Jul 14 '24 09:07 chaofengc