I created a model using Keras library and saved the model as .json and its weights with .h5 extension. How can I download this onto my local machine?
to save the model I followed this link
google-colaboratorypython-3.x
I created a model using Keras library and saved the model as .json and its weights with .h5 extension. How can I download this onto my local machine?
to save the model I followed this link
Best Answer
This worked for me !! Use PyDrive API
Same for weights
Now, check your google drive.
On next run, try reloading the weights
A Better NEW way to do it (post update) ... forget the previous (also works)
You will be prompted for authorization Go to this URL in a browser: something like : accounts.google.com/o/oauth2/auth?client_id=.....
obtain the auth code from the link, paste your authorization code in the space
Then you can use drive normally as your own disk
Save weights or even the full model directly
Even a Better way, use call backs, which automatically checks if the model at each epoch achieved better than the best saved one and save the one with best validation loss so far.
And use the call back in the model.fit
You can load it later, even with a previous user defined loss function