Support for 4 channels in SSIM #22
-
Do we have support for 4 channels in SSIM ? If I try to simple pass 4 channel images, it throws an error! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Hi, They should support it. Could you provide a minimal working example demonstrating the error? |
Beta Was this translation helpful? Give feedback.
-
AssertionError: Number of channels expected to be 3, got 4 With both PSNR and SSIM
img1 and img2 are 4 channel rasters |
Beta Was this translation helpful? Give feedback.
-
As mentioned in the documentation, SSIM has a parameter See https://francois-rozet.github.io/piqa/piqa.ssim.html#piqa.ssim.SSIM |
Beta Was this translation helpful? Give feedback.
-
The SImilar issue is for PSNR!
Gives a similar error, and I don't see the number of channels in its documentation! https://francois-rozet.github.io/piqa/piqa.psnr.html#piqa.psnr.PSNR |
Beta Was this translation helpful? Give feedback.
As mentioned in the documentation, SSIM has a parameter
n_channels
which is 3 by default.See https://francois-rozet.github.io/piqa/piqa.ssim.html#piqa.ssim.SSIM