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

Error in train_mask_detector.py #2

Open
winnk23 opened this issue Feb 25, 2023 · 0 comments
Open

Error in train_mask_detector.py #2

winnk23 opened this issue Feb 25, 2023 · 0 comments

Comments

@winnk23
Copy link

winnk23 commented Feb 25, 2023

Hi @akashkam559 ,
I have meet an error wile running the module1 (train_mask_detector.py). The error is:

[INFO] loading images...
Traceback (most recent call last):
File "E:\New folder\Covid19-Face-Mask-Detector-master\train_mask_detector.py", line 71, in
labels = lb.fit_transform(labels)
File "C:\Users\MY HP\AppData\Roaming\Python\Python39\site-packages\sklearn\preprocessing_label.py", line 325, in fit_transform
return self.fit(y).transform(y)
File "C:\Users\MY HP\AppData\Roaming\Python\Python39\site-packages\sklearn\preprocessing_label.py", line 299, in fit
raise ValueError("y has 0 samples: %r" % y)
ValueError: y has 0 samples: array([], dtype=float64)

How can i solve it? Thanks

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