1、save/loadweights
轻量级保存 只保存参数
model.save_weights('./checkpoints/my_checkpoint')
model = create_model()
model.load_weights('./checkpoints/my_checkpoint')
loss, acc = model.evaluate(test_images, test_labels)
2、save/load entire model
完整保存
1、save/loadweights
轻量级保存 只保存参数
model.save_weights('./checkpoints/my_checkpoint')
model = create_model()
model.load_weights('./checkpoints/my_checkpoint')
loss, acc = model.evaluate(test_images, test_labels)
2、save/load entire model
完整保存