Skip to content
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

RuntimeError: get_session is not available when using TensorFlow 2.0. #12

Open
edcaron opened this issue Mar 12, 2020 · 3 comments
Open

Comments

@edcaron
Copy link

edcaron commented Mar 12, 2020

There's a compatibility error on the U-Net, OD cup on

RIM-ONE v3, cropped by OD (fold 0).ipynb (nbviewer)

on the following code:

if K.backend() == 'tensorflow': sess = K.get_session()

it throws that error:

'get_sessionis not available ' RuntimeError:get_session is not available when using TensorFlow 2.0.

Any idea on how to fix it?

@SamuelMarks
Copy link
Contributor

@seva100 Do you want more work done on this repository?

I ask because of you previous #8 (comment)

Happy to help out, but don't want to spend time contributing to a deprecated codebase…

@seva100
Copy link
Owner

seva100 commented Apr 1, 2020

@edcaron the cell which contained if K.backend() == 'tensorflow': sess = K.get_session() was excessive, I've deleted it in the last commit. The previous cell does absolutely the same and should work.
Please reply if you still have issues.
Thank you.

@seva100
Copy link
Owner

seva100 commented Apr 1, 2020

@SamuelMarks yes, thank you for reminding me about updating this repo. I did not have time to do it before unfortunately but will try to find the time to update it with more recent code. Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants