April 2020
Intermediate to advanced
438 pages
12h 2m
English
Execute the following steps to implement age, gender, and emotion recognition with a pre-trained model in Keras:
json_file = open('models/model.json', 'r')loaded_model_json = json_file.read()json_file.close()loaded_model = model_from_json(loaded_model_json)loaded_model.load_weights('models/weights.29-3.76_utk.hdf5')
detector = dlib.get_frontal_face_detector()
Read now
Unlock full access