Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installed Face-recognition-modeland still it prompts please install face-recognition model #1610

Closed
Palash-Doshi-Git opened this issue Sep 10, 2024 · 3 comments

Comments

@Palash-Doshi-Git
Copy link

Palash-Doshi-Git commented Sep 10, 2024

  • face_recognition version:1.3.0
  • Python version:3.12.3
  • Operating System: Ubuntu Vm
  • face_recognition_model=0.30.0

Description

Describe what you were trying to get done.
I'm trying to use CV2 for my project and already have deployed it on Windows, now I'm trying it in Ubuntu system and it has installed all the support libs and requirements for face-recognition. Also tried installing in venv and with python3 -m and also with sudo apt.
Tell us what happened, what went wrong, and what you expected to happen.
I installed all the packages and everything while i was running '''flask run''' there is an error

Please install face_recognition_models` with this command before using "face_recognition":

pip install git+https://github.com/ageitgey/face_recognition_models`

and I also tried

`

pip show face-recognition
Name: face-recognition
Version: 1.3.0
Summary: Recognize faces from Python or from the command line
Home-page: https://github.com/ageitgey/face_recognition
Author: Adam Geitgey
Author-email: [email protected]
License: MIT license
Location: /home/azureuser/Palash/Facial-CheckIn/venv/lib/python3.12/site-packages
Requires: Click, dlib, face-recognition-models, numpy, Pillow
Required-by:
`
IMPORTANT: If your issue is related to a specific picture, include it so others can reproduce the issue.

What I Did

 **>>flask run**
Connection established
Please install "face_recognition_models" with this command before using `face_recognition`:

pip install git+https://github.com/ageitgey/face_recognition_models

**>> pip show face_recognition**
Name: face-recognition
Version: 1.3.0
Summary: Recognize faces from Python or from the command line
Home-page: https://github.com/ageitgey/face_recognition
Author: Adam Geitgey
Author-email: [email protected]
License: MIT license
Location: /home/azureuser/Palash/Facial-CheckIn/venv/lib/python3.12/site-packages
Requires: Click, dlib, face-recognition-models, numpy, Pillow
Required-by:
>> pip show face_recognition_models
Name: face_recognition_models
Version: 0.3.0
Summary: Models used by the face_recognition package.
Home-page: https://github.com/ageitgey/face_recognition_models
Author: Adam Geitgey
Author-email: [email protected]
License: MIT license
Location: /home/azureuser/Palash/Facial-CheckIn/venv/lib/python3.12/site-packages
Requires:
Required-by: face-recognition

@Palash-Doshi-Git Palash-Doshi-Git closed this as not planned Won't fix, can't repro, duplicate, stale Sep 11, 2024
@ArjunAtlast
Copy link

I am facing the same issue. How can it be fixed?

@teroyks
Copy link

teroyks commented Nov 8, 2024

Installing setuptools into the virtual environment solved this issue for me.

pip install setuptools

The reason seems to be that the face_recognition_models package imports a function from pkg_resources, but that wasn’t included automatically.

@ozskywalker
Copy link

ozskywalker commented Nov 19, 2024

@Palash-Doshi-Git would you consider re-opening this issue?

Added a PR to adjust requirements file, after I came across both ageitgey/face_recognition_models#21 & this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants