cftang0827 / face_gender

A simple demo of gender classifier by using dlib face recognition model as a feature extractor
25 stars 6 forks source link

pretrained model does not work #3

Open ghost opened 6 years ago

ghost commented 6 years ago

using classifier.pkl instead of built gender_data.pkl causes error. Can not be used.

LTGgeek commented 5 years ago

using classifier.pkl instead of built gender_data.pkl causes error. Can not be used.

You can just use

with open('classifier.pkl', 'rb') as f:
    classifier  = pickle.load(f)

and this classifier is the pre-trained classifier.