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

scripts.label_image tensorflow 2.0 #120

Open
MehmetCeylanV opened this issue Mar 26, 2019 · 1 comment
Open

scripts.label_image tensorflow 2.0 #120

MehmetCeylanV opened this issue Mar 26, 2019 · 1 comment

Comments

@MehmetCeylanV
Copy link

MehmetCeylanV commented Mar 26, 2019

Hi;

When i want to run label_image with tensorflow 2.0 , i am getting bellow error message. I have upgrade code by using method at https://www.tensorflow.org/alpha/guide/upgrade .

The Session graph is empty. Add operations to the graph before calling run().

Help me pls. I am newbie at tensorflow and python.
Regards

@LowSkillDeveloper
Copy link

Try change

import tensorflow as tf

to

import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()

in the label_image.py

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