Issues I faced - Saharsh007/Smile-Detection-on-Human-faces GitHub Wiki

  • The X_train and Y_train are misplaced
    This resolved it

filenames = [img for img in glob.glob("images/*.jpg")] filenames.sort() # ADD THIS LINE
images = []
for img in filenames:
n= cv2.imread(img)
images.append(n)
print (img)