-
Notifications
You must be signed in to change notification settings - Fork 39
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
Error: tensorflow has no attribute Session #6
Comments
the same thing happened to me. I read somewhere it was written in TensorFlow 1.xx version. But I was using TensorFlow 2.Even though I changed to TensorFlow 1.15 it still gives me the same error. I don't know which TensorFlow version it supports exactly. |
If anyone solves the issue please let us know. |
I have the same problem. Have you already solved this issue? |
No, I haven't ... |
Hey! I had the same issue and personally I have been able to execute the program by downgrading my Tensorflow to a 1.X version, which this program appears to be built on. tf.Session must be deprecated in TF2.X for some reason. I used |
Thank you! It was really helpful! |
Hey. I am having the same problem, however, downgrading TF is not an option, as I am running Ubuntu 20.04 and the base python 3 is Python 3.8.2. TF 1.x is only supported up until Python 3.7. Can the package maybe be updated? Thank you! |
I forked this repo and made some updates to make it compatible with tf2. Feel free to try it out here. I haven't tested it thoroughly so let me know if it works for you - no guarantees. |
If you are using Google Colab, put the line |
I am using python 3.7.9 and it is fixed installing these packages in this order: pip install numpy==1.16
pip install tensorflow==1.13.1
pip install tensorflow-gpu==1.13.1
pip install deepbrain It works for me (Maybe 2 tf installs could be replaced for only one) |
it doesn't really work. Is there a way to overcome this issue? |
One time consuming way to do this is loading both the v1 and v2 architecture and transferring the weights to the v2 architecture. Below is the code to do this. 'graph_v2.pb' can be found in the models directory. Might be missing some imports due to it being a part of my code.
Tested on tensorflow 2.x cpu version and it works. Didn't try gpu though. You can save the model if you don't want to go through all this every time. |
Hi,
I've installed your library and both tried to use it directly from python and as command line.
I get the following error in both situations. I have tensorflow installed...
Do you have any idea about what can be causing this ?
The text was updated successfully, but these errors were encountered: