unsky / focal-loss

Focal loss for Dense Object Detection
483 stars 124 forks source link

Focal Loss in Keras #8

Open mkocabas opened 6 years ago

mkocabas commented 6 years ago

Hi, Is there any implementation of Focal Loss in Keras or an ongoing effort? I really appreciate cooperation in such a work, please e-mail me if so.

mkocabas commented 6 years ago

I've implemented focal loss in keras, you can check it: https://github.com/mkocabas/focal-loss-keras

abhisheksgumadi commented 6 years ago

Hi @mkocabas thanks for the reference. How can I use this loss function in case of multi label classification? I understand your implementation in case of a binary classification. What about multi label classification?

alyato commented 6 years ago

@abhisheksgumadi i think you can check the https://github.com/keras-team/keras/issues/741#issuecomment-392725919 Thanks

chineseqsc commented 6 years ago

@alyato 404 error...

alyato commented 6 years ago

@chineseqsc if you click the link directly, it would show you the error. you can copy the link and open another tab in your chrome.