What is SSIM's output range? #31
-
Hi! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Found it in previous discussions. It's [0,1], meaning the loss function can be implemented as |
Beta Was this translation helpful? Give feedback.
-
Hello @ljeonjko 👋, I had to think about it, but the output range of SSIM is However, this does not change anything if you want a loss function. Any function of the type
|
Beta Was this translation helpful? Give feedback.
Hello @ljeonjko 👋,
I had to think about it, but the output range of SSIM is
[-1, 1]
. Indeed, for the first term, ifx
andy
are positives, the range is[0, 1]
, but the contrast sensitivity (CS) is some kind of correlation betweenx
andy
, which means it ranges from-1
to1
.However, this does not change anything if you want a loss function. Any function of the type
a - b * ssim(x, y)
, withb
strictly positive, would have gradients in the correct direction.