keras 2.0.1
See original GitHub issueHi, I adapted your code to my needs and it was working perfectly until I installed the latest keras version (2.0.1). Did some of you tried to run prednet with keras 2.0? The error I am getting is the following (even if I use ‘th’ or ‘tf’). Any suggestion to fix that will be very appreciated. Thanks a lot.
/usr/local/lib/python2.7/dist-packages/keras/legacy/interfaces.py:86: UserWarning: Update your Conv2D
call to the Keras 2 API: Conv2D(1, (3, 3), padding="same", activation=<function ..., data_format="channels_last")
'call to the Keras 2 API: ' + signature) /usr/local/lib/python2.7/dist-packages/keras/legacy/interfaces.py:86: UserWarning: Update your
Conv2Dcall to the Keras 2 API:
Conv2D(1, (3, 3), padding=“same”, activation=“relu”, data_format=“channels_last”) '
call to the Keras 2 API: ’ + signature)
/usr/local/lib/python2.7/dist-packages/keras/legacy/interfaces.py:86: UserWarning: Update your Conv2D
call to the Keras 2 API: Conv2D(48, (3, 3), padding="same", activation=<function ..., data_format="channels_last")
'call to the Keras 2 API: ' + signature) /usr/local/lib/python2.7/dist-packages/keras/legacy/interfaces.py:86: UserWarning: Update your
Conv2Dcall to the Keras 2 API:
Conv2D(96, (3, 3), padding=“same”, activation=<function …, data_format=“channels_last”) '
call to the Keras 2 API: ’ + signature)
/usr/local/lib/python2.7/dist-packages/keras/legacy/interfaces.py:86: UserWarning: Update your Conv2D
call to the Keras 2 API: Conv2D(192, (3, 3), padding="same", activation=<function ..., data_format="channels_last")
'` call to the Keras 2 API: ’ + signature)
Traceback (most recent call last):
File “predictSpatioTemporal.py”, line 267, in <module>
cache_dir=cache_dir)
File “predictSpatioTemporal.py”, line 173, in predictSpatioTemporal
train_prednet_model()
File “code/chalearn_train.py”, line 71, in train_prednet_model
errors = prednet(inputs) # errors will be (batch_size, nt, nb_layers)
File “/usr/local/lib/python2.7/dist-packages/keras/layers/recurrent.py”, line 252, in call
return super(Recurrent, self).call(inputs, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/keras/engine/topology.py”, line 528, in call
self.build(input_shapes[0])
File “code/prednet.py”, line 196, in build
if self.initial_weights is not None:
AttributeError: ‘PredNet’ object has no attribute ‘initial_weights’
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
Hi, I haven’t updated for Keras 2.0 yet but hope to do so in the not-too-distant future.
It’s now compatible with Keras 2.0 (cc76248). Thanks for the patience and let me know if you run into any issues with it!