-
Notifications
You must be signed in to change notification settings - Fork 128
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
module 'tensorflow.python.keras.backend' has no attribute 'get_graph' #28
Comments
Hey @myrzx, do you have tensorflow installed ? |
Yes, I did.By tensorflow. Python. Keras. In the backend get_graph to tf. Graph (), has now been solved this problem |
Hey @myrzx i am facing the same issue.. @arunponnusamy can you help me out?? |
Hey @kumaranu7, can you share the detailed steps you followed which resulted in this issue ? also the system / platform details you are running the code on and version of the packages and python? |
On executing "conda install -c conda-forge keras" in command prompt the above error appeared. |
Can you try installing cvlib and the dependencies with pip ? |
I am using google colab now. Thanks for your help if any problem persists on this platform i will retrieve to cvlib. Thanks for the repository. |
just replacing |
Depending on your tensorflow version you have to find a fitting keras 2.2.x version. I was working with tf 1.13.1 and had to downgrade from keras 2.3.1 to 2.2.4. That solved the problem. |
I am also same issue please any one help .I am using pip miniconda tf and keras. |
After long hours of research what worked for me was downgrading the python version from 3.8.2 to 3.7.6, by creating the virtual environment. It worked for Mac OS. command : virtualenv -p /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 venv |
Can you please give me the steps to do it |
Download python version 3.7.6 from this website: https://www.python.org/downloads/release/python-376/ Activate the virtual environment : source venv/bin/activate |
@Shrawant13 can you try with the latest version of cvlib (0.2.4) ? I have switched from standalone keras to tf.keras . Hopefully this issue should go away. |
downgrading keras to 2.2.4 solved my same issue |
try the tensorflow version==1.15.3 and keras version==2.2.4,it works,trust me! |
change |
thanks for your help!
Good luck!
…------------------ 原始邮件 ------------------
发件人: "arunponnusamy/cvlib" ***@***.***>;
发送时间: 2022年5月26日(星期四) 晚上8:50
***@***.***>;
***@***.***>;
主题: Re: [arunponnusamy/cvlib] module 'tensorflow.python.keras.backend' has no attribute 'get_graph' (#28)
change
Import keras..
to
Import tensorflow.keras..
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
import cvlib
then...
AttributeError: module 'tensorflow.python.keras.backend' has no attribute 'get_graph'
What should I do?
The text was updated successfully, but these errors were encountered: