akmadan / Emotion_Detection_CNN

79 stars 152 forks source link

Model weights #2

Open Alok589 opened 3 years ago

Alok589 commented 3 years ago

Hi,

That's really impressive work. I have been following the steps from your youtube video to train a CNN custom model on the Face-recognition dataset. However, I am facing a problem while saving and downloading the model's weights from the Kaggle notebook.

I know this issue has nothing to do with your code but I would appreciate it if you could help me solving this issue. I am attaching a screenshot and a code snippet for reference. My output file is always empty, doesn't matter whatever I do. I am new to Kaggle and don't have much knowledge of its UI. Please have a look and let me know where I am going wrong to save and download model `weights. Note: Maybe I am not defining the right path to save model weight.

checkpoint = ModelCheckpoint("./alok.h5", monitor='val_acc', verbose=1, save_best_only=True, mode='max')

kaggle

Hari-cmd commented 2 years ago

I am also same problem tell me the solution?

CATAKIDOKI commented 1 year ago

try monitor = 'val_accuracy' instead of monitor='val_acc'