keras-VAE icon indicating copy to clipboard operation
keras-VAE copied to clipboard

CustomBatchNormalization error when update params

Open clockwiser opened this issue 7 years ago • 2 comments

In keras 2 environment, running the training1 causes error. It says, two parameters from custombatch normalization are not references, so immutable to update. By the way, I changed the initilization to initializers since keras 2 provides no more support of initialization class.

Guess this class change somehow modified the weights of the custom layer to be immutable. Any help is welcom.

clockwiser avatar Sep 13 '17 00:09 clockwiser

initializer creates constant tensors, so is the error. Where can find the old version source of initializations.py?

clockwiser avatar Sep 13 '17 03:09 clockwiser

After find old version, changed the custom batch normalization, yet problems there are. Later found keras BatchNormalization is based on the same theory as below.

https://arxiv.org/abs/1502.03167

So switched to keras BatchNormalization, and everything looks working.

clockwiser avatar Sep 17 '17 08:09 clockwiser