Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Focal loss #93

Open
nikhilchh opened this issue Jun 22, 2023 · 0 comments
Open

Focal loss #93

nikhilchh opened this issue Jun 22, 2023 · 0 comments

Comments

@nikhilchh
Copy link

nikhilchh commented Jun 22, 2023

I saw that there is code for focal loss and hyper-parameter 'g'. I tried with g=1.5 but the results were not good compared to what i get without focal loss.

Did you do experimentation with focal loss ? If yes what was the conclusion ?

loss.py

        g = h['fl_gamma']  # focal loss gamma
        if g > 0:
            BCEcls, BCEobj = FocalLoss(BCEcls, g), FocalLoss(BCEobj, g)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant