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

Problem when running test-classifier.py #6

Open
andro-galexy opened this issue Dec 17, 2016 · 2 comments
Open

Problem when running test-classifier.py #6

andro-galexy opened this issue Dec 17, 2016 · 2 comments

Comments

@andro-galexy
Copy link

when i run i got this error:

/usr/lib/python2.7/site-packages/sklearn/utils/validation.py:395: DeprecationWarning: Passing 1d arrays as data is deprecated in 0.17 and will raise ValueError in 0.19. Reshape your data either using X.reshape(-1, 1) if your data has a single feature or X.reshape(1, -1) if it contains a single sample.
DeprecationWarning)

(test-classifier.py:19890): Gtk-WARNING **: gtk_disable_setlocale() must be called before gtk_init()

(test-classifier.py:19890): Gtk-CRITICAL **: IA__gtk_type_unique: assertion 'GTK_TYPE_IS_OBJECT (parent_type)' failed

(test-classifier.py:19890): Gtk-CRITICAL **: IA__gtk_type_unique: assertion 'GTK_TYPE_IS_OBJECT (parent_type)' failed

(test-classifier.py:19890): Gtk-CRITICAL **: IA__gtk_type_new: assertion 'GTK_TYPE_IS_OBJECT (type)' failed
zsh: segmentation fault (core dumped) /usr/bin/python2.7 test-classifier.py -i

Any clue??

@ghanshyamdudhatrapy
Copy link

ghanshyamdudhatrapy commented Dec 19, 2016

Hi swapgit,
If your data is not a numpy array then use np.array(data) first.
For your example type(if you may have more than one feature):
temp = temp.reshape(1,-1)
For one feature:
temp = temp.reshape(-1,1)

@andro-galexy
Copy link
Author

Actually am getting this error when I try to show the image using :
cv2.imshow("Final Detections after applying NMS", img)
cv2.waitKey()

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

2 participants