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

AttributeError: module 'tensorflow' has no attribute 'GraphDef' #9

Closed
tnavadiya opened this issue Oct 3, 2019 · 2 comments
Closed

Comments

@tnavadiya
Copy link

$python3 seg.py sample.jpg sample.png

Traceback (most recent call last):
File "seg.py", line 89, in
MODEL = DeepLabModel(modelType)
File "seg.py", line 25, in init
graph_def = tf.GraphDef.FromString(open(tarball_path + "/frozen_inference_graph.pb", "rb").read())
AttributeError: module 'tensorflow' has no attribute 'GraphDef'

I am getting this error when execute the given command. Can you please help me on this?

@d-bohn
Copy link

d-bohn commented Oct 12, 2019

Are you using tensorflow==2.0.0? I had this issue when I installed the newest version of tensorflow. I resolved the issue by installed tensorflow==1.14. I imagine with the recent update to 2.0 there is some broken code. If you (or anyone) has the time to look at the code and update it for the 2.0 release, that would be awesome!

@tnavadiya
Copy link
Author

Yes Thanks for your response. Its solved using 1.14.

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

2 participants