Closed AbhayVAshokan closed 3 years ago
In this, you are most probably facing an error due to the landmark model. Please have a look in the face_landmarks.py
in the get_landmark_model()
and see if the file path to the landmark model is correct or not.
I did not add the requirements.txt because I had used an existing environment and just added all the new frameworks in that itself, unfortunately, the things you can expect from a novice college student. However, I had used TensorFlow 2.2 along with opencv>4 and numpy=1.18.5 itself. The dependency issues comes in if you try to run the face spoofing code as well, especially the scikit-learn version required for that. If you skip that then you won't face any issues with your current settings.
Try downgrading your Tensorflow version to 2.2, it worked for me...
@AbhayVAshokan let me know if it works for you.
Try downgrading your Tensorflow version to 2.2, it worked for me...
Thanks, this works perfectly. Closing #34. It's much easier in the end than I thought it would be. Thank you #44mkashif.
pip install opencv-python
pip install tensorflow==2.2
@vardanagarwal Found the same error. Fixed it by modifying face_landmarks.py line 30 Used tensorflow saved model instead of keras load model.
model = tf.saved_model.load(saved_model)
Debian Unstable with python 3.9.2 pip list | egrep 'tensorflow|keras|opencv|numpy' keras-nightly 2.5.0.dev2021032900 numpy 1.19.5 opencv-python 4.5.2.52 tensorflow 2.5.0 tensorflow-estimator 2.5.0
@aspnair if you want you can create a pull request for this.
@vardanagarwal Thank You. That's fine. It is just a single line, so feel free to fix it in any way.
I have encountered the following error when I tried to run
python3 eye_tracker.py
. Am I missing something?This is the set of commands that I have executed after cloning the repo.
Executed the set of commands in the virtual environment.
The version of
tensorflow
that is installed is 2.4.0 and that of opencv is 4.4.0.46.If it is not too much to ask, could you provide your output to
pip freeze
command? I am facing dependency version issues in other codes as well.