Open Watcharin04 opened 4 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
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'