简体   繁体   中英

How do I save my keras model into google drive or the computer?

No code for this, I am making a presentable ML project, and I want to import my keras model into google drive or save it in my computer so I can use the "model.predict()" function in an instant. Could you help me?

You can use model.save() and model.load()

More details and examples here

If you are using google colab, you can mount you google drive in the notebook (menu in the left) and save and load directly from drive.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM