InsightFace-tensorflow icon indicating copy to clipboard operation
InsightFace-tensorflow copied to clipboard

How exactly is the cropping done?

Open lagidigu opened this issue 5 years ago • 5 comments

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!

lagidigu avatar May 07 '19 17:05 lagidigu

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

luckycallor avatar May 09 '19 06:05 luckycallor

@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?

lagidigu avatar May 09 '19 10:05 lagidigu

@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.

Wxsang avatar May 09 '19 10:05 Wxsang

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

lagidigu avatar May 09 '19 11:05 lagidigu

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

Wxsang avatar May 14 '19 07:05 Wxsang