且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

加载预训练的keras模型以在Google Cloud上继续进行训练

更新时间:2023-12-01 23:07:40

我建议使用AI Platform Notebooks这样做.使用此方法下载经过训练的模型.检查代码示例"选项卡下的Python代码.将模型放在运行Notebook的VM中后,就可以像在本地进行加载一样加载它. 此处,您有一个示例,其中使用 tf.keras.models.load_model .

I would suggest to use AI Platform Notebooks to do so. Download the trained model using this method. Check the Python code under the Code samples tab. Once you have your model in the VM where the Notebook is running you can load it as you were doing locally. Here you have an example where tf.keras.models.load_model is used.