Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

validation rate #288

Closed
zhly0 opened this issue May 23, 2017 · 15 comments
Closed

validation rate #288

zhly0 opened this issue May 23, 2017 · 15 comments

Comments

@zhly0
Copy link
Contributor

zhly0 commented May 23, 2017

the validate_on_lfw.py file output a Validation rate,like: 0.80 +-0.01 @ FAR=0.001.what dose this mean ,is there any related paper or concept?Thanks anyone who can answer this questions .

@luckyboysmith
Copy link

hi!
have you understand what this mean?

@davidsandberg
Copy link
Owner

Hi,
This is related to how the detection threshold is set and the VAL @ FAR=0.001 indicates how many image pairs the detector can correctly identify as the same identity while keeping the false alarm rate (FAR, i.e the probability that two images of different identities are the same) to 0.001. Since the detector need to be more certain, the VAL @ FAR=0.001 is lower than the accuracy.

@luckyboysmith
Copy link

@davidsandberg thanks for your reply,it really help me !
Now i have a question,if validation rate will affect accuracy?
i did some experiments two days ago
i align lfw images with size 20X20
and then i imresize the aligned lfw images to size 160X160
the images is blurred but when i run validate_on_lfw.py and set the path to the blurred lfw images
the accuracy is 0.903+-0.01
i am a beginer in deep learning
i think the accuracy is amazing, Was i wrong?

@luckyboysmith
Copy link

with validate on the blurred lfw images
the accuracy is 0.903
but valudiation rate is 0.45600

@luckyboysmith
Copy link

if validation rate shows how many image pairs the detector can correctly identify as the same identity while keeping the false alarm rate,then what does the accuracy mean?
does it means classify accuracy on lfw datasets?

@luckyboysmith
Copy link

what is the relationship between "distance matrix " and "accuracy"?

@luckyboysmith
Copy link

@davidsandberg
hope to get your help,pls

@ugtony
Copy link

ugtony commented Jun 3, 2017

@luckyboysmith,
I did the same experiment as yours before,
I shrink the image size to 5x5, 10x10, 20x20, ... and resize it back to feed into the network.
The accuracy at 20x20 is 0.905+-0.012 and the validation rate is 0.313, which is similar to your results.
So yes, the classifier works even when the input is small (blurred).

@luckyboysmith
Copy link

@ugtony
thanks for your reply!
now i am puzzled about the relationship between "validate rate" and "accuracy"
if validation rate shows how many image pairs the detector can correctly identify as the same identity while keeping the false alarm rate,then what does the accuracy mean?
hope to get your help,pls!

@ugtony
Copy link

ugtony commented Jun 3, 2017

@luckyboysmith ,
If True Positive(TP) is defined as "two faces are validated as the same person, and they are indeed the same", False Negative(FN) is defined as "two faces are judged as different people, but the truth is that they are the same person"
In david's project, "accuracy" means the maximum accuracy (TP+TF)/(TP+TF+FP+FN) under some threshold.
"Val@FAL=0.001" means the rate that faces are successfully accepted (TP/(TP+FN)) when the rate that faces are incorrectly accepted (FP/(TN+FP)) is 0.001.

@luckyboysmith
Copy link

@ugtony
your reply really help me a lot,thanks!!!!

@zhly0
Copy link
Contributor Author

zhly0 commented Jun 10, 2017

@ALL,thank you guys,now I think I understand it,the accuracy rate and the validate rate are different,and the are not related,but a better model should have a high accuracy and high validate rate.

@zhly0 zhly0 closed this as completed Jun 10, 2017
@SonVH013
Copy link

@ugtony
what is TF mean in (TP+TF)/(TP+TF+FP+FN) ?
i don't understand :D

@ugtony
Copy link

ugtony commented Feb 15, 2018

@SonVH013,
That was a typo.
It should be TN instead of TF.

@hyderit
Copy link

hyderit commented Apr 18, 2018

According to the FaceNet paper, FAR means (False Accept Rate) which is the rate of face pairs that are different and yet have a distance that is below a certain threshold (which could be classified as positive).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants