Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

fix variable name in dice loss error message (#982) (#983)

David Nicholson68b20b92f88b
diff --git a/kornia/losses/dice.py b/kornia/losses/dice.py
index 2f6ab68c5..441b11f6a 100644
--- a/kornia/losses/dice.py
+++ b/kornia/losses/dice.py
@@ -58,7 +58,7 @@ def dice_loss(input: torch.Tensor, target: torch.Tensor, eps: float = 1e-8) -> t
if not input.shape[-2:] == target.shape[-2:]:
raise ValueError("input and target shapes must be the same. Got: {} and {}"
- .format(input.shape, input.shape))
+ .format(input.shape, target.shape))
if not input.device == target.device:
raise ValueError(