luckycallor / InsightFace-tensorflow

Tensoflow implementation of InsightFace (ArcFace: Additive Angular Margin Loss for Deep Face Recognition).
248 stars 112 forks source link

How exactly is the cropping done? #10

Open lagidigu opened 5 years ago

lagidigu commented 5 years ago

Hello,

Thanks for making this repo! Just one question: Is cropping the image with MTCNN sufficient when using the ms1m dataset? Were the images aligned with a margin of 5?

Thanks a lot in advance!

luckycallor commented 5 years ago

@lagidigu When using the dataset opensourced by the official InsightFace project, there is no need to do further cropping.

lagidigu commented 5 years ago

@luckycallor Thanks for the quick answer. I'm trying to generate embeddings with the pre-trained network (ms1m-100) for later inference with nearest neighbour.

I am asking because it seems like inference with cosine distance is not precise. Cropping is consistent with the original dataset cropping, so there shouldn't be a problem.

Could it be due to the batch size being static?

Wxsang commented 5 years ago

@lagidigu Actually, i had the same problem. In my case, i need to identify someone. I found the margin of MTCNN have a big impact on the final result. if the value of margin too small, the accuracy goes down. i dont konw why.

lagidigu commented 5 years ago

@Wxsang I currently use a margin of 5, so that could explain it. What margin have you found the most success with?

Wxsang commented 5 years ago

@lagidigu I am sorry to reply you so late. I can't find the best margin, all results are not good.