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

tensorflow.python.framework.errors_impl.OperatorNotAllowedInGraphError: using a tf.Tensor as a Python bool is not allowed in Graph execution. Use Eager execution or decorate this function with @tf.function. #8

Open
galrapo opened this issue Dec 4, 2019 · 2 comments

Comments

@galrapo
Copy link

galrapo commented Dec 4, 2019

Hi,

I'm trying to run the demo as instructed and I get the following:
tensorflow.python.framework.errors_impl.OperatorNotAllowedInGraphError: using a tf.Tensoras a Pythonbool is not allowed in Graph execution. Use Eager execution or decorate this function with @tf.function..

I'm using windows 7 (with an i7 processor and w/o GPU)... not sure if it has any connection.

Thanks in advance!

@mangotee
Copy link
Collaborator

mangotee commented Dec 5, 2019

Hi,
the error message suggests that you are using Tensorflow v2.0 (that's the earliest version in which eager execution was introduced). DeepVOG was developed with Tensorflow v1.14, and has not yet been migrated to TF 2.0, and I don't expect this to happen before next year. For now, I would recommend downgrading TF to a version <2.0 (e.g. 1.14), and trying again. The easiest way to apply it to your data is to download and run the Docker image, as described in the documentation.
Hope this helps!

@PJ127
Copy link

PJ127 commented Apr 29, 2020

Thank you for your answer.
Could you precise in the Project Description that tensorflow v1.14 is needed to run deepvog? It is not intuitive, and I spent quite some time before finding this information...
Now I am spending some time to install tensorflow 1.14, not supported anymore by new Ubuntu versions... Do you have an idea if deepvog will migrate to TF2 soon?
Thank you for your work and your help.

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