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

Is PCA helpful? #47

Open
GuitarYourself opened this issue Feb 23, 2017 · 2 comments
Open

Is PCA helpful? #47

GuitarYourself opened this issue Feb 23, 2017 · 2 comments

Comments

@GuitarYourself
Copy link

I recently reproduced your result with your 99.3% model in your matlab code.
There is a interesting thing: in the lfwPCA.m, if you replace thresh1 by thresh2 when training the SVM, the result accuracy is as well as thresh1, about 99.25%.
In my test, i changed [U,mu,vars] = pca( [F1_mu(train_idx,:); F2_mu(train_idx,:)]' ); with [U,mu,vars] = pca( [F1_mu(train_idx,:); F2_mu(train_idx,:)] ); , with the matlab version 2015b. And, i downloaded a applyPCA.m because i didn't find the function in your code. i‘m not sure if these changes matter.

Anyway, i trained a SVM model using the 6000 pairs in LFW with opencv, and used it to test the whole possible pairs formed by total images in LFW. Unfortunately, the acc in same subject pairs is about 82% with the acc in different subject pairs 45%. Do you have some light on this phenomenon?

@happynear
Copy link
Owner

I'm using Matlab 2016b, maybe the applyPCA is in the new version. PCA does help a lot just as you experimented.

I don't know much about the SVM in LFW. I guess you choose the wrong kernel (linear kernel is enough)?

@xiaoxiongli
Copy link

xiaoxiongli commented Aug 1, 2017

i wonder that why we need use SVM since we already get the face feature before and after PCA.

Why we need trainsvm in applyPCA.m ?

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

3 participants