Skip to content

Commit ec3518e

Browse files
✏️ Typing typo
1 parent 85f114f commit ec3518e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spiq/ssim.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424

2525
from spiq.utils import build_reduce, gaussian_kernel
2626

27+
from typing import Tuple
28+
2729
_WEIGHTS = torch.FloatTensor([0.0448, 0.2856, 0.3001, 0.2363, 0.1333])
2830

2931

@@ -50,7 +52,7 @@ def ssim_per_channel(
5052
value_range: float = 1.,
5153
k1: float = 0.01,
5254
k2: float = 0.03,
53-
) -> torch.Tensor:
55+
) -> Tuple[torch.Tensor, torch.Tensor]:
5456
r"""Returns the SSIM and the contrast sensitivity per channel
5557
between `x` and `y`.
5658

0 commit comments

Comments
 (0)