I trained my model in Google colab and then saved it using model1.save('thebestonesofar57block5.h5')
. After that I downloaded the file to my windows machine. After uploading it to a new google colab session, I'm getting the following error, using:
from keras.models import load_model
Loaded_model = load_model('thebestonesofar57block5.h5')
Error:
OSError: Unable to open file (truncated file: eof = 7340032, sblock->base_addr = 0, stored_eof = 126651688)
In my case somehow the .h5 file was corrupted or erroneous so I downloaded it again and voila it worked