Discussions>keras get_weights() & set_weights() incompatible?>

keras get_weights() & set_weights() incompatible?

Hi, guys,

I have trained a model using Keras (the code is from Github, and can be run). I changed the model.  the model is trained using a patch-based method. and when I'm using 

weights = model_patch.get_weight()
model_full.set_weights(weights)

The compiler said: they are incompatible!
Would you please help me?

Many thanks.

2 votesAS2.00
2 Answers
JW270.00
1

Why do you have 2 different Keras models "model_full" and "model_patch"? 
If you are just using patch-based training, why do you have to create different Keras models?

Reply
AS2.00
0

Maybe it's the PRelu's problem.

Reply
Couldn't find what you were looking for?and we will find an expert to answer.
How helpful was this page?