AttributeError: module 'tensorflow' has no attribute 'app'

前端 未结 2 610
挽巷
挽巷 2020-12-20 11:13

I am following this tutorial and doing a project on custom object-detection using tensorflow.

So when I tried to create TF record for the train images using the foll

相关标签:
2条回答
  • 2020-12-20 11:36

    Which Tensorflow version, are you using? If it is TF2.0 then you need to replace tf.app.flags with tf.compat.v1.flags defined here since it is no longer supported.

    0 讨论(0)
  • 2020-12-20 11:38

    try using import tensorflow.compat.v1 as tf

    0 讨论(0)
提交回复
热议问题