Skip to content

Implementation of focal loss in pytorch for unbalanced classification.

License

Notifications You must be signed in to change notification settings

ashawkey/FocalLoss.pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Focal Loss

Paper

This is a focal loss implementation in pytorch.

Simple Experiment

Running results from the train.py.

Also compared with imbalanced-dataset-sampler, and it seems that it is much better to use balanced sample method if your task can use it (eg. classification).

image-20191216151753209

About

Implementation of focal loss in pytorch for unbalanced classification.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages