Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于cosin_add_m_layer的实现 #37

Closed
grapefruitL opened this issue Aug 7, 2019 · 1 comment
Closed

关于cosin_add_m_layer的实现 #37

grapefruitL opened this issue Aug 7, 2019 · 1 comment

Comments

@grapefruitL
Copy link

grapefruitL commented Aug 7, 2019

感谢老师分享
关于cosin_add_m_layer的实现我有个疑问,Forward_cpu()中的以下代码是什么意思?arcface论文里好像只提到了下面else的实现,判断cos_t[i * dim + gt] <= threshold的意图以及对应的处理希望老师给解答一下,谢谢!

if(cos_t[i * dim + gt] <= threshold)

{

    top_data[i * dim + gt] = cos_t[i * dim + gt] - sin(M_PI - m_) * m_;

    tpflag[i * dim + gt] = 1.0f;

}

else

    top_data[i * dim + gt] = cos_t[i * dim + gt] * cos_m - sin_theta * sin_m;
@grapefruitL
Copy link
Author

看这个
deepinsight/insightface#108

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant