ipazc / mtcnn

MTCNN face detection implementation for TensorFlow, as a PIP package.
MIT License
2.23k stars 527 forks source link

Incompatible with tensorflow 2.0 #83

Closed blahBlahhhJ closed 4 years ago

blahBlahhhJ commented 4 years ago

Looks like the TensorFlow backend used in this Keras model is still on tf 1.0, so when I trymtcnn = MTCNN(), I get an error of AttributeError: module 'tensorflow' has no attribute 'get_default_graph' Can you please implement a version compatible with tf2.0?

blahBlahhhJ commented 4 years ago

Well, I got into factory.py and import tensorflow.keras instead, and it solved the problem. But please update anyways.

christian-rncl commented 4 years ago

85