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 data_range in ssim_loss #72

Open
xyfJASON opened this issue Nov 9, 2024 · 0 comments
Open

About data_range in ssim_loss #72

xyfJASON opened this issue Nov 9, 2024 · 0 comments

Comments

@xyfJASON
Copy link

xyfJASON commented Nov 9, 2024

When calculating SSIM, e.g., here:

ssim = ssim_loss(rgb_restored, rgb_gt, multichannel=True, data_range=2.0, channel_axis=-1)

The argument data_range is set to 2.0, but the value of rgb_restored and rgb_gt are actually between [0,1], as indicated by the code above this line. Is there a particular reason for setting data_range to 2.0?

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