Skip to content

Instantly share code, notes, and snippets.

@Kakarot-2000
Created May 3, 2021 06:10
Show Gist options
  • Save Kakarot-2000/7dc830fe9089807c258c711c0e028097 to your computer and use it in GitHub Desktop.
Save Kakarot-2000/7dc830fe9089807c258c711c0e028097 to your computer and use it in GitHub Desktop.
fer_json = model1.to_json()
with open("fer.json", "w") as json_file:
json_file.write(fer_json)
model1.save_weights("fer.h5")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment