TreB1eN / InsightFace_Pytorch

Pytorch0.4.1 codes for InsightFace
MIT License
1.74k stars 423 forks source link

Problem with clustering task using InsightFace #148

Open chungphung opened 4 years ago

chungphung commented 4 years ago

I tried to use the model for face clustering as an alternative for facenet since facenet didn't meet my expectation. The problem is I tried the output vectors with the clustering method I used with facenet, however, the result is super bad. I looked to the source code and see that it used L2 in inference. I check further using L2 distance and see that everytime 1 vector in the set I want to cluster is used calculate the distance between it and the rest of the dataset, the distance will decrease. Note: each ID in the dataset is vastly different to others, and the result from facenet still able to reach 60% in precision, while insightface cannot do anything. For example: