question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi, 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 yourConv2Dcall 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 yourConv2Dcall 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:closed
  • Created 7 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
bill-lottercommented, Mar 27, 2017

Hi, I haven’t updated for Keras 2.0 yet but hope to do so in the not-too-distant future.

0reactions
bill-lottercommented, Aug 15, 2017

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!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Home - Keras 2.0.1 Documentation
Keras is a high-level neural networks API, written in Python and capable of running on top of either TensorFlow or Theano. It was...
Read more >
Introducing Keras 2 - The Keras Blog
Keras has enabled new startups, made researchers more productive, simplified the workflows of engineers at large companies, and opened up deep ...
Read more >
Module: tf.keras | TensorFlow v2.11.0
Implementation of the Keras API, the high-level API of TensorFlow. Detailed documentation and user guides are available at keras.io.
Read more >
Links for keras
Links for keras. Keras-0.2.0-py2.7.egg · Keras-0.2.0-py3.5.egg · Keras-0.2.0.tar.gz ... Keras-2.0.1.tar.gz · Keras-2.0.2.tar.gz · Keras-2.0.3.tar.gz
Read more >
keras - PyPI
pip install keras ... TensorFlow Keras is an implementation of the Keras API that uses TensorFlow as a backend ... 2.0.1. Mar 16,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found