You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FAIL: test_consistency_with_cross_entropy_2d_no_reduction (tests.test_focal_loss.TestFocalLoss)
For gamma=0 the focal loss reduces to the cross entropy loss
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/MONAI/tests/test_focal_loss.py", line 135, in test_consistency_with_cross_entropy_2d_no_reduction
assert np.allclose(max_error, 0)
AssertionError
Activity
KumoLiu commentedon Mar 12, 2024
Error is due to the change from https://github.com/pytorch/pytorch/pull/115539/files#diff-a95ea091724587d4c34bf4d1bb04cf43e3891d8548d61810de08948ab7a9c96e.
fix Project-MONAI#7533
Update to use `log_sigmoid` in `FocalLoss` (#7534)
Update to use `log_sigmoid` in `FocalLoss` (Project-MONAI#7534)
Update to use `log_sigmoid` in `FocalLoss` (Project-MONAI#7534)