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

Two errors #16

Open
SurenderMohanRaghav opened this issue Jan 22, 2020 · 0 comments
Open

Two errors #16

SurenderMohanRaghav opened this issue Jan 22, 2020 · 0 comments

Comments

@SurenderMohanRaghav
Copy link

  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

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

1 participant