Attendance-using-Face icon indicating copy to clipboard operation
Attendance-using-Face copied to clipboard

Two errors

Open SurenderMohanRaghav opened this issue 5 years ago • 0 comments

  1. y_train=to_categorical(y_train,num_classes=n_classes) // y = np.array(y, dtype='int') ValueError: invalid literal for int() with base 10:

  2. for x in people: #print(x) for i in os.listdir('people/'+x): #print(i) img=cv2.imread('people'+'/'+x+'/'+i,1) img=cv2.resize(img,(160,160)) img=img.astype('float')/255.0 img=np.expand_dims(img,axis=0) embs=e.calculate(img) #print(embs) x_data.append(embs) y_data.append(x) . should be likne

SurenderMohanRaghav avatar Jan 22 '20 13:01 SurenderMohanRaghav