Ask Your Question
0

FaceRecognizer facerec_demo.py returning confidence of 0.00

asked 2013-04-22 11:51:43 -0600

Pi Robot gravatar image

Hello,

I am trying the facerec_demo.py script on the AT&T face database and the confidence value returned for any image in the original training database is 0.00. Is that expected behavior?

Thanks!
patrick

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-04-22 13:06:15 -0600

berak gravatar image

well, oh, the python demo is a bit flawed there.

the image you want to test should be excluded from the training set ( like the cpp demo does )

since this does not happen, think of it, it's no wonder that it finds zero distance to itself

edit flag offensive delete link more

Comments

1

Exactly what he says. You should always divide your data into three sets: training, validating and test set. In order to know what the meaning of both is, take a look at this link: http://stats.stackexchange.com/questions/19048/what-is-the-difference-between-test-set-and-validation-set. It gives a good explanation of the basic concepts behind training correctly and how to reach the highest accuracy, while avoiding overfitting.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-04-22 13:54:56 -0600 )edit
1

Thanks @berak for the reply. And yes, I am familiar with cross-validation methods. So it seems I don't understand the meaning of "confidence" as used with the FaceRecognizer. Are you saying that the meaning of "confidence" is the same as "distance"? This seems backwards to me. If the distance between the test image and itself is zero, shouldn't the confidence of the match be 100% (1.00)?

Pi Robot gravatar imagePi Robot ( 2013-04-22 19:05:54 -0600 )edit
1

yes, it is the distance. and calling that "confidence" is a bit unlucky, imho.

as you said, that would be more the inverse of it.

berak gravatar imageberak ( 2013-04-23 01:01:30 -0600 )edit

OK thanks.

Pi Robot gravatar imagePi Robot ( 2013-04-23 07:33:48 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-04-22 11:51:43 -0600

Seen: 247 times

Last updated: Apr 22 '13