vijay

welcome Netizen

Share Your Knowledge.It is a way to achieve immortality

Wednesday, April 8, 2020

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

Hi All,

i have got this error while doing custom object detection in tensorflow.

Here the solution which i found
It occurs due to Tensorflow version
If it is TF2.0 then you need to replace  with tf.compat.v1.flags

Change the import tensorflow keyword

Correct One:

import tensorflow.compat.v1 as tf

0 comments:

Post a Comment