Facenet-Real-time-face-recognition-using-deep-learning-Tensorflow
Facenet-Real-time-face-recognition-using-deep-learning-Tensorflow copied to clipboard
issue regarding tenserflow
AttributeError Traceback (most recent call last)
~\testing new\preprocess.py in collect_data(self) 22 23 dataset = facenet.get_dataset(self.input_datadir) ---> 24 with tf.compat.v1.Graph().as_default(): 25 gpu_options = tf.compat.v1.GPUOptions(per_process_gpu_memory_fraction=0.5) 26 sess = tf.compat.v1.Session(config=tf.ConfigProto(gpu_options=gpu_options, log_device_placement=False))
AttributeError: module 'tensorflow' has no attribute 'Session'
This is my error i have tried adding v1.compat it worked for some lines but here it sis giving error
make sure you are using the correct TensorFlow version as Session has been deprecated in 2.0
Install proper version of libraries. library list is given here.