You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: