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

Have you tried to convert alignment algorithm? #5

Closed
jeonginseo opened this issue Oct 14, 2020 · 4 comments
Closed

Have you tried to convert alignment algorithm? #5

jeonginseo opened this issue Oct 14, 2020 · 4 comments

Comments

@jeonginseo
Copy link

I tried to convert the coordinateReg of insightface as below:
https://github.com/deepinsight/insightface/tree/master/alignment/coordinateReg

I modified all the things you mentioned about retinaface and arcface.
After conversion, the generated model seems to be same as original model, but its result is not similar to original one, and the result never changes when the input image changed.

Do you have any idea for this?
i think the problems are caused by prelu,flatten, or batchnorm.

@SthPhoenix
Copy link

Symptoms looks like pretty the same as in #4 , and model symbol also has some batchnorm layers with fixed gamma.
You could try applying fixes from that issue.

@zheshipinyinMc
Copy link
Owner

solved?@jeonginseo@SthPhoenix

@SthPhoenix
Copy link

I haven't tested outputs of this exact model, but SubCenter ArcFace having same fixed gamma issue, works as intended after this fix.
SthPhoenix/InsightFace-REST#5 (comment)

@jeonginseo
Copy link
Author

Sorry I was late.
Actually, I failed to convert to onnx successfully and converted the model by using your another repo on caffe.
I had to fix the BN gamma, by
net.params[key_caffe][0].data.flat=1

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

3 participants