deepinsight / insightface

State-of-the-art 2D and 3D Face Analysis Project
https://insightface.ai
22.73k stars 5.33k forks source link

about circle loss #1266

Open shuyikong opened 3 years ago

shuyikong commented 3 years ago

I modified the get_symbol() function in train.py in recognition in order to train recognition model with circle loss, with reference to another repository https://github.com/zjysnow/CircleLoss , but the training result is stange, when m=0.25,s=64, the acc is always 0, and when the loss value didn't decrese any longer, the ver acc of lfw/cfp/agedb is still low(99.03/87.88/91.93). What‘s even worse, when I set s=256, the loss value keep always 'nan'. Can anyone help me to see what's the problem of my code? Thanks sooo much.

shuyikong commented 3 years ago

WechatIMG1411 this is my code.

abdikaiym01 commented 2 years ago

Did you get success in implementation the circle loss at the end? Are you sovle this problems?