-
Notifications
You must be signed in to change notification settings - Fork 661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: cannot import name '_Conv' from 'keras.layers.convolutional' #228
Comments
Yes , I also encounter same issue but not sure what to do |
I also encounter same issue |
Same here... |
same problem. any solution? :( |
need help |
This project seems to stale, see #221 (comment) |
That's why people start to migrate to Pytorch |
Any help? |
|
Sorry for late reply. Try this: Let me know, the solution worked or not |
It is working now. Thanks, A lot!!! |
It also works for me although I have to make some changes to my code. I also used Keras 2.2.2 with TensorFlow 2.0 and it was okay too. However, I moved my code to tf.keras and used the method provided in the official Keras documentation and it works like a charm:) |
|
_Conv method not available with later version keras 2.4, the way to solve this is use Conv2D API. You can update the saliency.py module as I did below
|
@jmajumde did you update your tensorflow_backend.py file as well? |
Try this: solved my issue... |
try this: change following lines in still if you want to use functions like This lib is far behind the current changes, consider using tf_keras_vis or other visualization libs. |
Yes, tf_keras_vis is great! Thanks for the suggestion |
Check that you are up-to-date with the master branch of keras-vis. You can update with:
pip install git+git://github.com/raghakot/keras-vis.git --upgrade --no-deps
If running on TensorFlow, check that you are up-to-date with the latest version. The installation instructions can be found here.
If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:
pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps
Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).
Hi,
after a fresh installation of keras-vis using
pip install -U -I git+https://github.com/raghakot/keras-vis.git
I try to import Keras by running
import keras
and encounter the following error:
ImportError: cannot import name '_Conv' from 'keras.layers.convolutional'
.As backend for Keras I'm using Tensorflow version
2.2.0
. As far as I understood the_Conv
class is only available for older Tensorflow versions. I've tried to downgrade to Tensorflow 1.15.0, but then I encounter compatibility issues using Keras 2.0, as required by keras-vis.Has anybody else encountered this issue? Is there a workaround?
The text was updated successfully, but these errors were encountered: