Skip to content

Instantly share code, notes, and snippets.

@mylamour
Created August 16, 2018 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mylamour/c3ac58642edb601db1424891a00e7d15 to your computer and use it in GitHub Desktop.
Save mylamour/c3ac58642edb601db1424891a00e7d15 to your computer and use it in GitHub Desktop.
#keras# #learning# #question#
  • Name "Keras" not found
keras.models.load_model("xxxxx.h5")

修改为

keras.models.load_model("xxxxx.h5",custom_objects={"keras":keras})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment