cubiq / ComfyUI_FaceAnalysis

Extension for ComfyUI to evaluate the similarity between two faces
Apache License 2.0
227 stars 25 forks source link

Why the euc and cos scores are so different using dlib or insightface? #5

Closed deepfree2023 closed 4 months ago

deepfree2023 commented 4 months ago

The scores obtained by insightface are much larger than the ones from dlib. Could this be fixed?

Dib:

dlib

Insightface:

insightface
cubiq commented 4 months ago

it's not an error, the scores are not absolute but relative to the model. We could do normalization I guess not sure what is the right strategy for that

deepfree2023 commented 4 months ago

I see. Is it true that different thresholds are required for different face analysis models?

cubiq commented 4 months ago

yes. that is true. I will add deepface next and see if there's a way to normalize the results