🐍 Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
Documentation: proper Sørensen–Dice coefficient (#1961)
Semyon206e8ceb1d90
diff --git a/kornia/losses/dice.py b/kornia/losses/dice.pyindex f5a3ac0f6..138c381e6 100644--- a/kornia/losses/dice.py+++ b/kornia/losses/dice.py@@ -15,7 +15,7 @@ def dice_loss(input: torch.Tensor, target: torch.Tensor, eps: float = 1e-8) -> t.. math::- \text{Dice}(x, class) = \frac{2 |X| \cap |Y|}{|X| + |Y|}+ \text{Dice}(x, class) = \frac{2 |X \cap Y|}{|X| + |Y|}Where:- :math:`X` expects to be the scores of each class.