AttributeError: module 'tensorflow.data' has no attribute 'AUTOTUNE'
tensorflowの AUTOTUNE は、 tf.data.experimental.AUTOTUNE にあります。
TypeError: map() got an unexpected keyword argument 'deterministic'
deterministic を消します。
AttributeError: module 'tensorflow.data' has no attribute 'AUTOTUNE'
tensorflowの AUTOTUNE は、 tf.data.experimental.AUTOTUNE にあります。
TypeError: map() got an unexpected keyword argument 'deterministic'
deterministic を消します。
ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
この片方か両方が必要です。
pip install opencv-python
apt-get install libgtk2.0-dev
pip3 install opencv-contrib-python
まずこうしてインストールすると言う事になっていますがこれでもエラーが解消されないと思います。
その時は関数の名前が違います。
recognizer = cv2.face.createLBPHFaceRecognizer()
recognizer = cv2.face_LBPHFaceRecognizer.create()