You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So ssim_idx_full_image will share the same shape as original image, there is no need to take the padding out again, otherwise it will result in losing information on edge.
Also, the kernal_size is a input parameter while gauss_kernel_size is calculated based on input parameter sigma. If we call the function without gaussian kernel, the padding size will still calculated based on gauss_kernel_size rather than kernal_size.
Hello, if these issues were not deliberately designed for other reasons, I would be happy to open a PR to fix them. I look forward to your feedback. Thank you!
https://github.com/Lightning-AI/torchmetrics/blob/a31417ca1bc4a47ca093c22e3f2f2b5e6843d58a/src/torchmetrics/functional/image/ssim.py#L164C1-L170C72
Before the convolution, we already applied same padding to the image
So ssim_idx_full_image will share the same shape as original image, there is no need to take the padding out again, otherwise it will result in losing information on edge.
The text was updated successfully, but these errors were encountered: