π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
fix variable name in dice loss error message (#982) (#983)
David Nicholson68b20b92f88b
diff --git a/kornia/losses/dice.py b/kornia/losses/dice.pyindex 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) -> tif 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(