AirGesture icon indicating copy to clipboard operation
AirGesture copied to clipboard

Error in battle_city.py

Open dbhardwaj1904 opened this issue 4 years ago • 1 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 !

dbhardwaj1904 avatar Oct 10 '19 10:10 dbhardwaj1904

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.

checkrath avatar Nov 08 '19 10:11 checkrath