Closed remic33 closed 3 years ago
I also am getting a list index out of range
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 "/home/pi/Desktop/pi-projects/color_recognition/src/color_recognition_api/knn_classifier.py", line 87, in main
return classifier_prediction[0]
IndexError: list index out of range
I solved this problem by changed the path of the train.data and test.data to absolute path
Hello @ahmetozlu Ahmetozlu, What is supposed to be inside the test.data file? You did not provide explanations about that file. I'm trying to implement your code after object detection, with numpy array and I have trouble like this :
`
Thanks !