vardanagarwal / Proctoring-AI

Creating a software for automatic monitoring in online proctoring
MIT License
544 stars 329 forks source link

Predict_proba no attribute #11

Closed acheaito97 closed 4 years ago

acheaito97 commented 4 years ago

i got this error : prob = clf.predict_proba(feature_vector)[0][1] AttributeError: 'str' object has no attribute 'predict_proba'

vardanagarwal commented 4 years ago

I am guessing you are getting this error in the face spoofing program. Can you make sure your model is being correctly loaded and you have the correct version of scikit learn as mentioned in README, because the model is incompatible with newer versions.

acheaito97 commented 4 years ago

after using the same version of scikit learn i got this extra error :

DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working from collections import Sequence Traceback (most recent call last): File "Proctoring-AI-master/face_spoofing.py", line 55, in prediction = clf.predict_proba(feature_vector) AttributeError: 'str' object has no attribute 'predict_proba' [ WARN:0] global ..\modules\videoio\src\cap_msmf.cpp (435) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback

acheaito97 commented 4 years ago

the problem is solved thank you