My keras model is saved in google storage with model.save(model_name)
I cannot load the model on pydatalab. When I save the model on my local machine, I can just ope
OS level command can also be used just in case someone is using Colab
To mound your google drive use
from google.colab import drive
drive.mount('/content/drive', force_remount=True)
Code to mount GCS
from google.colab import auth
auth.authenticate_user()
project_id = 'thirumalai_bucket' #your bucket here
!gcloud config set project {project_id}
!gsutil ls
!gsutil -m cp
in your case:
!gsutil -m cp gs://mybucket/model.h5 /content/drive/My\ Drive/models/
now the file model.h5 available in drive /content/drive/My Drive/models/ move to your models directory using:
!cd /content/drive/My\ Drive/models/
load_model('model.h5')
Hope this helps!