uvipen / AirGesture

Play games without touching keyboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in battle_city.py

dbhardwaj1904 opened this issue · comments

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 !

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.