1 | initial version |
please remove those 2 lines:
x_train.append(path) #Verify the image and convert into gray and numpy array
y_lebels.append(label) # some number for our labels
(you're trying to append a string to the image list)