In this project, when I was tarining the LSTM model, I had made a checkpoint to save the accuracy. I wrote the command - checkpoint=ModelCheckpoint(“best_model.h5”,monitor=“val_loss”,verbose=True,save_best_only=True) . After that I wrote the command - model.load_weights(“best_model.h5”) . However, I am getting an error saying - unable to open fiile (file signature not found) . Please tell what to do.
Doubt in Project - Emoji Prediction
hey @abhaygarg2001 ,
i guess you are saving the whole model , but loading only weights.
So add ,save_weights_only parameter also.
I hope it will work then.