ArunMichaelDsouza / tensorflow-image-detection

A generic image detection program that uses Google's Machine Learning library, Tensorflow and a pre-trained Deep Learning Convolutional Neural Network model called Inception.
MIT License
328 stars 88 forks source link

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

Closed kareemz32 closed 2 years ago

kareemz32 commented 2 years ago

Traceback (most recent call last): File "D:\Users\Documents\GitHub\tensorflow-image-detection\retrain.py", line 1105, in tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)

Keep getting this error every time I try to run the bash train.sh command, not sure how to fix this.

kareemz32 commented 2 years ago

import tensorflow as tf needed to be replaced with import tensforflow.compat.v1 as tf