Hy @Angelina_Robert, I will look to it, for now do you know the idea of L-Softmax or Angular Softmax, which adds a angle between classes in softmax.

  
      
      arXiv.org
  
  
    

Additive Margin Softmax for Face Verification 5

In this paper, we propose a conceptually simple and geometrically
interpretable objective function, i.e. additive margin Softmax (AM-Softmax),
for deep face verification. In general, the face verification task can be
viewed as a metric learning...


  
  
    
    
  
  



  
      
      GitHub
  
  
    

Leethony/Additive-Margin-Softmax-Loss-Pytorch 10

Additive margin softmax loss in pytorch. Contribute to Leethony/Additive-Margin-Softmax-Loss-Pytorch development by creating an account on GitHub.