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

IndexError at 'knn_classifier.py' #3

Closed
utkudmir opened this issue Nov 13, 2018 · 2 comments
Closed

IndexError at 'knn_classifier.py' #3

utkudmir opened this issue Nov 13, 2018 · 2 comments

Comments

@utkudmir
Copy link

training data is ready, classifier is loading...
Traceback (most recent call last):
  File ".\src\color_classification_image.py", line 32, in <module>
    prediction = knn_classifier.main('training.data', 'test.data')
  File "...\color_recognition-master\color_recognition-master\src\color_recognition_api\knn_classifier.py", line 87, in main
    return classifier_prediction[0])
IndexError: list index out of range
@KeramKeram
Copy link

Het @utkudmir I know it's propably to late but problem is lack of black_cat.jpg in folder.

@ahmetozlu
Copy link
Owner

@utkudmir could you share your test image, please? The error must be caused by your input file structure.

@utkudmir utkudmir closed this as completed Jul 9, 2019
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