otaha178 / Emotion-recognition

Real time emotion recognition
MIT License
1.09k stars 364 forks source link

val_acc KeyError using ModelCheckpoint. #35

Open raghav7203 opened 4 years ago

raghav7203 commented 4 years ago

changing "{val_acc:.2f}" to "{val_accuracy:.2f}" and it will work fine, as no variable named "val_acc" is defined but what you are trying to get is accuracy value after each epoch, which is probably defined as "val_accuracy". @omar178 I have commited the code change for the train_emotion_classifier.py. I have tested, it is working fine. Please find below the pull request:

raghav7203 commented 4 years ago

@omar178 please verify for the pull request. It's much needed for the informative repositories like this.