tempdata73 / face_verification

Real time face tracking and verification
3 stars 0 forks source link

requirements: tensorflow version or compatibility patch to ver1.x ? #6

Open ozett opened 4 years ago

ozett commented 4 years ago

got an error while creating databases on ubuntu 18.10 with latest tensorflow (pip-install)

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

image

any hint to resolve this?

ozett commented 4 years ago

https://github.com/keras-team/keras/issues/12379 ??

ozett commented 4 years ago

https://github.com/keras-team/keras/issues/12379#issuecomment-579672259

import tensorflow as tf
# sess = tf.compat.v1.Session(graph=tf.import_graph_def(), config=session_conf)
sess = tf.compat.v1.Session(graph=tf.compat.v1.get_default_graph(), config=session_conf)
tf.compat.v1.keras.backend.set_session(sess)

maybe this helps?