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

metrics: add SSIM #1217

Merged
merged 18 commits into from
Aug 4, 2020
Prev Previous commit
Next Next commit
Update ignite/metrics/ssim.py
Co-authored-by: vfdev <vfdev.5@gmail.com>
  • Loading branch information
Jeff Yang and vfdev-5 committed Aug 4, 2020
commit 7f5ae64735cae3eaf9c682f961d2facaa0e48f50
3 changes: 2 additions & 1 deletion ignite/metrics/ssim.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class SSIM(Metric):
Args:
data_range (int or float): Range of the image. Typically, ``1.0`` or ``255``.
kernel_size (int or list or tuple of int): Size of the kernel. Default: (11, 11)
sigma (float or list or tuple of float): Standard deviation of the gaussian kernel. Default: (1.5, 1.5)
sigma (float or list or tuple of float): Standard deviation of the gaussian kernel.
Argument is used if ``gaussian=True``. Default: (1.5, 1.5)
k1 (float): Parameter of SSIM. Default: 0.01
k2 (float): Parameter of SSIM. Default: 0.03
gaussian (bool): ``True`` to use gaussian kernel, ``False`` to use uniform kernel
Expand Down