From a97cf1f2ed30d5efd04c41de899f1cffa05f244c Mon Sep 17 00:00:00 2001 From: Qingpeng Li Date: Wed, 24 May 2023 01:42:06 +0800 Subject: [PATCH] fix format DCO Remediation Commit for Qingpeng Li I, Qingpeng Li , hereby add my Signed-off-by to this commit: cb5ed048e8d3c07430fa48ab8d1eaf7ec3a5e55c I, Qingpeng Li , hereby add my Signed-off-by to this commit: 78eebafff0295818c3c409414dbd8acf26c09558 Signed-off-by: Qingpeng Li --- monai/losses/focal_loss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monai/losses/focal_loss.py b/monai/losses/focal_loss.py index d1401cacdf..039cc8b05f 100644 --- a/monai/losses/focal_loss.py +++ b/monai/losses/focal_loss.py @@ -245,7 +245,7 @@ def sigmoid_focal_loss( # 1-sigmoid(i) if t==1; sigmoid(i) if t==0 <=> # 1-p if t==1; p if t==0 <=> # pfac, that is, the term (1 - pt) - invprobs = F.logsigmoid(-input * (target * 2 - 1)) # reduced chance of overflow + invprobs = F.logsigmoid(-input * (target * 2 - 1)) # reduced chance of overflow # (pfac.log() * gamma).exp() <=> # pfac.log().exp() ^ gamma <=> # pfac ^ gamma