keras-visual-semantic-embedding icon indicating copy to clipboard operation
keras-visual-semantic-embedding copied to clipboard

Trouble loading a pre-trained model

Open DOsinga opened this issue 7 years ago • 0 comments

Hi there!

I was playing with your code as it looks nice and straight forward, but when I try to load any of the models from: http://www.cs.toronto.edu/~rkiros/models/vse.zip I get an error: 'ValueError: You called set_weights(weights) on layer "gru" with a weight list of length 9, but the layer was expecting 3 weights.'

The keras GRU layer indeed sets up 3 weights (kernel, recurrent_kernel and bias), so I wonder where the 9 comes from. Any ideas on things to try?

Thanks,

Douwe

DOsinga avatar Jul 28 '17 15:07 DOsinga