Skip to content

Commit 38b7da6

Browse files
authored
Add reference
1 parent 5075b4d commit 38b7da6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

segmentation_models_pytorch/utils/functions.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
def iou(pr, gt, eps=1e-7, threshold=None, activation='sigmoid'):
55
"""
6+
Source:
7+
https://github.com/catalyst-team/catalyst/
68
Args:
79
pr (torch.Tensor): A list of predicted elements
810
gt (torch.Tensor): A list of elements that are to be predicted
@@ -70,4 +72,4 @@ def f_score(pr, gt, beta=1, eps=1e-7, threshold=None, activation='sigmoid'):
7072
score = ((1 + beta ** 2) * tp + eps) \
7173
/ ((1 + beta ** 2) * tp + beta ** 2 * fn + fp + eps)
7274

73-
return score
75+
return score

0 commit comments

Comments
 (0)