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

Error During test #8

Open
nicolasbolzan opened this issue Dec 18, 2016 · 2 comments
Open

Error During test #8

nicolasbolzan opened this issue Dec 18, 2016 · 2 comments

Comments

@nicolasbolzan
Copy link

nicolasbolzan commented Dec 18, 2016

Hi!, awesome code.
I'm getting this error during the execution of test-classifier.py:

Traceback (most recent call last):
File "test-classifier.py", line 69, in
pred = clf.predict(fd)
File "/usr/lib/python2.7/dist-packages/sklearn/linear_model/base.py", line 268, in predict
scores = self.decision_function(X)
File "/usr/lib/python2.7/dist-packages/sklearn/linear_model/base.py", line 249, in decision_function
% (X.shape[1], n_features))
ValueError: X has 2430 features per sample; expecting 5184

Is there any correlation with the number of positive and negative samples?

I'm puting 100 Pos images and 13000 Neg images
Resolution: 80X80

Regards!

@ghanshyamdudhatrapy
Copy link

Hi nicolasbolzan,
you have to take double negative images then positive images,

if you are take 100 +ve images the you have to take maximum 200 -ve images

May be this tips helps you to resolve your problem

@Nakul22
Copy link

Nakul22 commented Jun 16, 2017

Change line 44 from
min_wdw_sz = (100, 40)
to
min_wdw_sz = (64, 64)

This will create equal number of gradient features as in sum model.

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