Skip to content Skip to sidebar Skip to footer

Importerror: `load_model` Requires H5py When Loading Hdf5

I saved Keras model in hdf5 format as follows: from keras.callbacks import ModelCheckpoint filepath='keras_ltsm_dep_model2.hdf5' checkpointer = ModelCheckpoint(filepath,

Solution 1:

Did you install h5py lib?

Try this:

  1. sudo apt-get install libhdf5
  2. sudo pip install h5py

If it's not working, maybe you also need to install cython as well (you can check if you already have it). If it happens, do: sudo pip install cython

Post a Comment for "Importerror: `load_model` Requires H5py When Loading Hdf5"