Skip to content

Implementation of "Anchor Loss: Modulating loss scale based on prediction difficulty"

License

Notifications You must be signed in to change notification settings

slryou41/AnchorLoss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Anchor Loss in PyTorch

PyTorch implementation of Anchor Loss: Modulating loss scale based on prediction difficulty, Serim Ryou, Seong-Gyun Jeong, Pietro Perona, ICCV 2019

Anchor Loss

anchorloss This code provides anchor loss on image classification. To train the model with anchor loss, include anchor_loss.py and call the AnchorLoss() function.

from anchor_loss import AnchorLoss

gamma = 0.5
slack = 0.05
anchor = 'neg'
warm_up = False

criterion = AnchorLoss(gamma, slack, anchor, warm_up)

The default parameter settings are shown above. Details about the parameters are explained in the anchor_loss.py.

If you use this code, please cite it:

@InProceedings{Ryou_2019_ICCV,
  author = {Ryou, Serim and Jeong, Seong-Gyun and Perona, Pietro},
  title = {Anchor Loss: Modulating Loss Scale Based on Prediction Difficulty},
  booktitle = {The IEEE International Conference on Computer Vision (ICCV)},
  month = {October},
  year = {2019}
}

About

Implementation of "Anchor Loss: Modulating loss scale based on prediction difficulty"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages