ch14 generate_tfRecord.py error
Closed this issue · 3 comments
chris-kehl commented
receiving this error message in ch14 generate_tfRecord.py
File "generate_tfRecord.py", line 20, in
flags = tf.app.flags
AttributeError: module 'tensorflow' has no attribute 'app'
sidgan commented
Thank you for pointing this out. Are you on TensorFlow 2.x? Looks like TensorFlow 2.x no longer has the tf.app
functionality according to tensorflow/tensorflow#34431
Can you try using code/chapter-6/storing-data-as-tfrecord.ipynb code for conversion which works for TensorFlow 2.x.
chris-kehl commented
Hello, I haven’t tried it yet. I switched my program I was working on to Microsofts custom vision.ai. I will revisit the problem, maybe this upcoming weekend.
… On Jun 27, 2020, at 9:33 PM, Siddha Ganju ***@***.***> wrote:
Thank you for pointing this out. Are you on TensorFlow 2.x? Looks like TensorFlow 2.x no longer has the tf.app functionality according to tensorflow/tensorflow#34431 <tensorflow/tensorflow#34431>
Can you try using https://github.com/PracticalDL/Practical-Deep-Learning-Book/blob/master/code/chapter-6/storing-data-as-tfrecord.ipynb <https://github.com/PracticalDL/Practical-Deep-Learning-Book/blob/master/code/chapter-6/storing-data-as-tfrecord.ipynb> code for conversion which works for TensorFlow 2.x.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#127 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIIOPOQ4B36LDISLHUROS2LRY2MWJANCNFSM4OEB743Q>.
sidgan commented
I'm closing this issue now, since there has been no activity in the past 2 weeks.