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

Error in battle_city.py #5

Open
dbhardwaj1904 opened this issue Oct 10, 2019 · 1 comment
Open

Error in battle_city.py #5

dbhardwaj1904 opened this issue Oct 10, 2019 · 1 comment

Comments

@dbhardwaj1904
Copy link

Traceback (most recent call last):
File "C:/Users/User/Downloads/Compressed/AirGesture-master/battle_city.py", line 12, in
tf.flags.DEFINE_integer("width", 640, "Screen width")
AttributeError: module 'tensorflow' has no attribute 'flags'

Need helps....asap !

@checkrath
Copy link

The issue seems to be that the code is built against tensorflow v1. If you are using Tensorflow V2, you'll get this error. Apparently Tensorflow has a tool for upgrading old Tensorflow code but I'm having trouble running the tool.

Tool details can be found at https://www.tensorflow.org/guide/upgrade . Let me know if you come right with the tool as I'd love to get it working on my side.

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