Skip to content

Instantly share code, notes, and snippets.

@vipul79321
Created June 22, 2019 15:41
Show Gist options
  • Save vipul79321/137c954a30922bcd401e38ee2f26c5c7 to your computer and use it in GitHub Desktop.
Save vipul79321/137c954a30922bcd401e38ee2f26c5c7 to your computer and use it in GitHub Desktop.
json_file = open('model_final.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_final.h5")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment