CornerNet icon indicating copy to clipboard operation
CornerNet copied to clipboard

function _sigmoid() question

Open annzheng opened this issue 6 years ago • 2 comments

Hi, I found in function _sigmoid(), you clamp the value between (1e-4, 1-1e-4) after sigmoid, why need to do this? Here is the code: def _sigmoid(x): x = torch.clamp(x.sigmoid_(), min=1e-4, max=1-1e-4) return x

annzheng avatar May 09 '19 05:05 annzheng

We did it to make the training more stable.

heilaw avatar May 09 '19 15:05 heilaw

Hi @heilaw!

How does it make the training more stable?

developer0hye avatar Apr 07 '22 01:04 developer0hye