Closed blevlabs closed 7 months ago
I recommend you to downgrade tf and keras. I am using 2.9.0 for both, and it is fine.
BTW, I plan to get rid of the normalization layer of VGG-Face model (default model of deepface) in the next release. Meanwhile, you can try to use another model such as Facenet.
verification = DeepFace.verify(img1_path=face1_path, img2_path=face2_rgb_image,
model_name="Facenet", enforce_detection=False)
Meanwhile, ChatGPT recommends to disable JIT compilation
import os
os.environ['TF_XLA_FLAGS'] = '--tf_xla_enable_xla_devices'
Additionally, disabling GPU will help you in the worst case
import os
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
Getting this issue. I referenced other issue tickets on this repo, and tried to implement the following
But this did not help at all. Keras, tensorflow, and deepface package details are below: