exadel-inc / CompreFace

Leading free and open-source face recognition system
https://exadel.com/accelerator-showcase/compreface/
Apache License 2.0
5.24k stars 721 forks source link

Many false positive even for close face detection #1093

Open tyanai opened 1 year ago

tyanai commented 1 year ago

Hi,

I have a good working setup of Reolink (for 1920p) with snapshots taken on the highest resolution over to DoubleTake and CompreFace.

The issue I have is that CompreFace gives me 98% accuracy even for unknown people standing close to the camera. Sometime it even mark my ankle as my face with 92%. This happens also with other people I'm training for, even that I only train for relatively closer images.

I also only train based on what the camera detect, didn't upload any other image.

Question is - Is this something to do with the Camera, or should I upload a more rich images of myself first?

Thanks,

Tal.

pospielov commented 1 year ago

Ideally, training images should be taken on the same camera and same conditions as during recognition. If it's not possible - it's better to use images with the best quality for training. One detail, I recommend using only one image per subject to avoid false positives. One more idea, have you tried custom builds? They should be more accurate, especially SubCenter-ArcFace-r100: https://github.com/exadel-inc/CompreFace/blob/master/docs/Custom-builds.md

tyanai commented 1 year ago

Thanks, can you please elaborate what did you refer with "one image per subject"? Are you saying that more than one image within a training is less beneficial?

pospielov commented 1 year ago

Imagine you are a security guy and you were given a photo of John - the person needs to recognize. It's not an easy task to recognize a person using a photo, so there is a chance that you won't recognize John when you see him, or there is a chance that you will recognize another person as John So now, imagine you were given the second photo of John. So when a person approaches you, you compare the first photo and then a second photo with the person. The chance that you recognize John will increase, even if he doesn't look like in the first photo, he will probably look similar in the second photo. But the chance that somebody else would look like John in one of the photos also increased. So there is a bigger chance of recognizing another person as John. What would you do if you met a person who looks similar to John from one photo, but different from another photo? The logic will depend on your needs:

tyanai commented 1 year ago

Thanks for the detailed explanation.

Thanks,

Tal.


From: Pospielov Serhii @.> Sent: Tuesday, July 25, 2023 6:50:28 PM To: exadel-inc/CompreFace @.> Cc: Tal Yanai @.>; Author @.> Subject: Re: [exadel-inc/CompreFace] Many false positive even for close face detection (Issue #1093)

Imagine you are a security guy and you were given a photo of John - the person needs to recognize. It's not an easy task to recognize a person using a photo, so there is a chance that you won't recognize John when you see him, or there is a chance that you will recognize another person as John So now, imagine you were given the second photo of John. So when a person approaches you, you compare the first photo and then a second photo with the person. The chance that you recognize John will increase, even if he doesn't look like in the first photo, he will probably look similar in the second photo. But the chance that somebody else would look like John in one of the photos also increased. So there is a bigger chance of recognizing another person as John. What would you do if you met a person who looks similar to John from one photo, but different from another photo? The logic will depend on your needs:

— Reply to this email directly, view it on GitHubhttps://github.com/exadel-inc/CompreFace/issues/1093#issuecomment-1650098326, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAH43C7I6UJNTI6VVLBWDKDXR7TMJANCNFSM6AAAAAAZZXMXUA. You are receiving this because you authored the thread.Message ID: @.***>