deepinsight / deepinsight/insightface

Alignment with MTCNN does not produce insightface package result

Open
#2,191 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
29.7k
Forks
6.1k
PR merge metrics
No merged PRs in 30d

Description

Hi,

I have one image named sample.jpg and it contains only one face. I detected and aligned the face using mtcnn and parameters you have mentioned [here](https://github.com/deepinsight/insightface/issues/1286). Then I used `insightface.model_zoo.ArcFaceONNX` to get the aligned face's embedding. Then I used `insightface.app.face_analysis.FaceAnalysis` (large model) to detect and get embedding of the sample.jpg image. But comparing two vectors results **0.9034** similarity and **0.1410** distance which should be 1 and 0.

Any idea?

Update:
I changed the alignment parameters to those in [face_align.py](https://github.com/deepinsight/insightface/blob/master/python-package/insightface/utils/face_align.py) in insightface package and got **0.9690** similarity and **0.0793** distance but they are not 1 and 0 yet. Is it normal? because detection models are different (MTCNN and SCRFD)?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.