someshkhandelia / Final-Year-Project

9 stars 3 forks source link

FileNotFoundError: [Errno 2] No such file or directory: '.pkl' #1

Open avinash321 opened 6 years ago

avinash321 commented 6 years ago

Hi, getting following error while running AttendanceTaker.py $ python3 AttendanceTaker.py Taking image... ############## FACE DETECTION COMPLETED !! ################## Traceback (most recent call last): File "AttendanceTaker.py", line 52, in predictions = ifk_obj.getPrediction(trained_pickle_name) File "C:\Users\avinash\Desktop\test\Final-Year-Project\ImageFeederKNN.py", line 48, in getPrediction self.KNN_classifier = self.KNN_obj.loadClassifier(pickle_name) File "C:\Users\avinash\Desktop\test\Final-Year-Project\KNNClassifier.py", line 57, in loadClassifier with open(pickle_name + '.pkl' , 'rb') as fid: FileNotFoundError: [Errno 2] No such file or directory: '.pkl'

someshkhandelia commented 6 years ago

I have not kept the trained classifier's pickle file on github since it was too large. You can train the classifier, create the pkl file and then use it in AttendanceTaker.py

someshkhandelia commented 6 years ago

TrainClassifier.py would do the job for you.