π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
docs(losses): render dice_loss average options as a list (#5623)
Dmytro Mishkin7f1817595bce
diff --git a/kornia/losses/dice.py b/kornia/losses/dice.pyindex bbca12938..579b81b79 100644--- a/kornia/losses/dice.py+++ b/kornia/losses/dice.py@@ -69,6 +69,7 @@ def dice_loss(is in range :math:`0 β€ targets[i] β€ C-1`.average:Reduction applied in multi-class scenario:+- ``'micro'`` [default]: Calculate the loss across all classes.- ``'macro'``: Average class losses over classes present in each sample's non-ignored target.Samples with all pixels ignored, or whose present classes all have weight 0, have loss 1.