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

[Issue] In train_model.py #2

Open
Tamajit168 opened this issue Aug 12, 2021 · 0 comments
Open

[Issue] In train_model.py #2

Tamajit168 opened this issue Aug 12, 2021 · 0 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Tamajit168
Copy link

Tamajit168 commented Aug 12, 2021

image

[INFO] loading face embeddings...
[INFO] encoding labels...
[INFO] training model...
Traceback (most recent call last):
File "train_model.py", line 29, in
recognizer.fit(data["embeddings"], labels)
File "C:\Users\Tamajit\AppData\Local\Programs\Python\Python38\lib\site-packages\sklearn\svm_base.py", line 173, in fit
y = self._validate_targets(y)
File "C:\Users\Tamajit\AppData\Local\Programs\Python\Python38\lib\site-packages\sklearn\svm_base.py", line 558, in _validate_targets
raise ValueError(
ValueError: The number of classes has to be greater than one; got 1 class

@Tamajit168 Tamajit168 self-assigned this Aug 12, 2021
@Tamajit168 Tamajit168 added bug Something isn't working help wanted Extra attention is needed labels Aug 12, 2021
@subhamdas-github subhamdas-github added this to To do in OpenCV Face Recognition via automation Aug 12, 2021
@subhamdas-github subhamdas-github self-assigned this Aug 12, 2021
@subhamdas-github subhamdas-github moved this from To do to In progress in OpenCV Face Recognition Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
No open projects
Development

No branches or pull requests

2 participants