bikz05 / object-detector

Object Detection Framework using HOG as descriptor and Linear SVM as classifier.
MIT License
430 stars 221 forks source link

LinearSVC fit error #4

Open arnonkahani opened 8 years ago

arnonkahani commented 8 years ago

Hi, I keep getting: ValueError: setting an array element with a sequence. When the line: clf.fit(fds, labels) tries to run. Do you have any idea what am I doing wrong?

Thanks in advance

ranveeraggarwal commented 8 years ago

This generally happens when the sizes of your feature vectors aren't the same. All your fds should be of the same size, meaning that all your training images must be of the same dimensions. If you directly cloned this repo without downloading the dataset, you might face the same issue.

HenryJunW commented 5 years ago

Can you elaborate a little bit more? I still got the error 'ValueError: X has 324 features per sample; expecting 2430'