EderSantana / seya

Bringing up some extra Cosmo to Keras.
Other
377 stars 103 forks source link

BatchNormalization build() takes exactly 1 argument (2 given) #49

Closed AkashDevgun closed 7 years ago

AkashDevgun commented 7 years ago

Hi guys,

Please help me out for this error. I am running keras and when following line executes it gives the error.

model.add(BatchNormalization(mode = 1))

raceback (most recent call last): File "training.py", line 134, in model.add(BatchNormalization(mode = 1)) File "/home/akash/anaconda2/envs/vision/lib/python2.7/site-packages/keras/models.py", line 324, in add output_tensor = layer(self.outputs[0]) File "/home/akash/anaconda2/envs/vision/lib/python2.7/site-packages/keras/engine/topology.py", line 491, in call self.build(input_shapes[0]) TypeError: build() takes exactly 1 argument (2 given) TypeError: build() takes exactly 1 argument (2 given)

EderSantana commented 7 years ago

this is a keras issue. also please note that seya does not officially support keras 1. I'd recommend checking the API of the BatchNormalization in your version of keras to make sure you're using it right