bikz05 / object-detector

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

Please anser the problem of numpy error. #29

Open thaingiW opened 6 years ago

thaingiW commented 6 years ago

classifier = svm.SVC(gamma=0.001)

classifier.fit(data,targets) Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.5/dist-packages/sklearn/svm/base.py", line 149, in fit accept_large_sparse=False) File "/usr/local/lib/python3.5/dist-packages/sklearn/utils/validation.py", line 747, in check_X_y estimator=estimator) File "/usr/local/lib/python3.5/dist-packages/sklearn/utils/validation.py", line 522, in check_array array = np.asarray(array, dtype=object, order=order) File "/usr/local/lib/python3.5/dist-packages/numpy/core/numeric.py", line 482, in asarray return array(a, dtype,copy=False, order=order) ValueError: setting an array element with a sequence. How can I solve this error?Thanks in advance!

Damini1098 commented 3 years ago

Hi thaingiW i am also facing this issue . is this issue solved? if you solve please help me thank you in advance