📅  最后修改于: 2022-03-11 14:45:37.647000             🧑  作者: Mango
json_file = open('model.json', 'r')
loaded_model_json = json_file.read()
json_file.close()
loaded_model = model_from_json(loaded_model_json)
# load weights into new model
loaded_model.load_weights("model.h5")