aakashjhawar / face-recognition-using-deep-learning

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

File "recognize_video.py", line 87, in <module> #3

Open Watcharin04 opened 4 years ago

Watcharin04 commented 4 years ago

File "recognize_video.py", line 87, in preds = recognizer.predict_proba(vec)[0] File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/sklearn/svm/_base.py", line 657, in predict_proba self._check_proba() File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/sklearn/svm/_base.py", line 623, in _check_proba if not self.probability: AttributeError: 'SVC' object has no attribute 'probability'

nahomneg commented 3 years ago

Hello, Hope you have solved your problem already. If not, make sure you are using the exact same version of sklearn that was used for this project. You can use the following command... pip3 install --upgrade scikit-learn==0.19.2