Open deekshithmr95 opened 6 years ago
In test-classifier.py
, before pred = clf.predict(fd)
, add fd = [fd]
.
hello @vermouthzjh I tried your method now i am getting :
Traceback (most recent call last): File "test-classifier.py", line 72, in <module> pred = clf.predict(fds) File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\sklearn\linear_model\base.py", line 324, in predict scores = self.decision_function(X) File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\sklearn\linear_model\base.py", line 305, in decision_function % (X.shape[1], n_features)) ValueError: X has 10206 features per sample; expecting 35721
@alwansm Hi, I met the same problems.Have u solved it?
The same problem to me
bump
Same problem, anyone solve it yet?
fd=fd.reshape(1,-1) pred=clf.predict(fd) It works. but I have another error:ValueError: X has 22032 features per sample; expecting 38916,how to fix it?
fd=fd.reshape(1,-1) pred=clf.predict(fd) It works. but I have another error:ValueError: X has 22032 features per sample; expecting 38916,how to fix it?
Same problem,, Do you solved this?
I'm running
test-object-detector.py
on Windows 10 64bit with python 3.6.3 (addedprint
statement's missing parenthesis)python successfully downloaded and extracted 'UIUC Image Database for Car Detection' but i'm getting error here
how to resolve this issue?