aakashjhawar / face-recognition-using-deep-learning

Identify faces from video and images using OpenCV and Deep Learning
MIT License
127 stars 32 forks source link

sklearn.svm.classes error #10

Open PRAJWAL2108 opened 2 years ago

PRAJWAL2108 commented 2 years ago

"recognize_video.py", line 22, in recognizer = pickle.loads(open("output/recognizer.pickle", "rb").read()) ModuleNotFoundError: No module named 'sklearn.svm.classes'

PavithranRick commented 2 years ago

Same issue. Mismatch between sklearn version. Can you please give the sklearn version originally used?

PavithranRick commented 2 years ago

Changing line 26 of train_model.py to this fixed it

f = open("output/recognizer.pickle", "wb")
PRAJWAL2108 commented 2 years ago

Ok, Thank You !!

himudigonda commented 2 years ago

Same issue. Mismatch between sklearn version. Can you please give the sklearn version originally used?

+1

SuchintK commented 1 year ago

Changing line 26 of train_model.py to this fixed it

f = open("output/recognizer.pickle", "wb")

Still not working

8999904177 commented 1 year ago

Changing line 26 of train_model.py to this fixed it

f = open("output/recognizer.pickle", "wb")

Thanks it worked out for me