clcarwin / sphereface_pytorch

A PyTorch Implementation of SphereFace.
MIT License
714 stars 172 forks source link

gamma #15

Closed zhly0 closed 6 years ago

zhly0 commented 6 years ago

Thanks for your code! but the code: loss = -1 * (1-pt)*self.gamma logpt in the Angleloss,I really did not get it,because,the default gamma is 0,and the term: (1-pt)*self.gamma is useless,it is equal to: loss = -1 logpt my question is , is 0 is your default gamma value?

clcarwin commented 6 years ago

Yes, zero is the default value. The code is Focal Loss, you can read the focal loss paper to known more.

zhly0 commented 6 years ago

Thanks!