Focal-Loss icon indicating copy to clipboard operation
Focal-Loss copied to clipboard

When gamma set below 1, loss will go to nan

Open lukk47 opened this issue 7 years ago • 2 comments

I set alpha to 0.5 and gamma to 0.5, the loss will go to NAN. After changing gamma to 1, loss became normal. I didn't see any restriction of gamma in the paper. Is there difference between your code and the paper?

lukk47 avatar Nov 02 '17 06:11 lukk47

@LokLu Hi, I met the same problem, do you figure why it does so? Thanks :)

ytzhao avatar Jul 25 '18 12:07 ytzhao

I also meet this problem.

AKAlilghost avatar Mar 11 '19 09:03 AKAlilghost