Open masakistan opened 7 years ago
try to use model.load_weights("model_file")
Did you fix this in the end? I'm having the same problem
I have same problem.
model = Seq2Seq(input_shape... ....) # Instantiate a model object with the same configuration as above before loading weights model.load_weights('model.h5')
I've been using the
recurrentshop-1
branch and unable to save models that have RecurrentModel layers in them. Here's an example using thetest_recurrent_model.py
in the tests.it returns the following error:
What I've found is that somehow the input node names in the rnn layer are getting changed. This is problematic when connecting the rnn layer with the rest of the network. I found that if I give a specific name to the input node that connects to the rnn layer that the error goes away and the model is successfully saved.
Though saving works doing this, I am unable to load the model afterwards. I get the following error:
Should I be specifying
_OptionalInputPlaceHolder
as acustom_object
when I'm usingload_model
?Thanks!