Skip to content

Commit

Permalink
Update docstring for the JaccardLoss (#487)
Browse files Browse the repository at this point in the history
JaccardLoss doesn't accept a parameter "ignore_index"
  • Loading branch information
calebrob6 authored Sep 18, 2021
1 parent 15418da commit 35d79c1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion segmentation_models_pytorch/losses/jaccard.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ def __init__(
log_loss: If True, loss computed as `- log(jaccard_coeff)`, otherwise `1 - jaccard_coeff`
from_logits: If True, assumes input is raw logits
smooth: Smoothness constant for dice coefficient
ignore_index: Label that indicates ignored pixels (does not contribute to loss)
eps: A small epsilon for numerical stability to avoid zero division error
(denominator will be always greater or equal to eps)
Expand Down

0 comments on commit 35d79c1

Please sign in to comment.