ageitgey / ageitgey/face_recognition

AttributeError: module 'dlib' has no attribute 'get_frontal_face_detector'

Open
#440 24 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
56.8k
Forks
13.7k
PR merge metrics
No merged PRs in 30d

Description

  • face_recognition version:
  • Python version:3.6.5 (64bit)
  • dlib version: 19.10
  • Operating System: win7(64)
Description

Installations .
Note: No Conda installation on my Machine

  • pip3 install numpy

  • pip3 install scipy

  • pip3 install dlib

  • pip3 install Pillow

  • pip3 install --no-dependencies face_recognition

  • pip3 install face_recognition_models

What I Did

I Ran this File : https://github.com/afarane/Face_Recognition/blob/master/AFR.py

Gives Me Following Error . Why ?

Traceback (most recent call last):
File "0_iFaces.py", line 3, in
import face_recognition
File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\site-pac
from .api import load_image_file, face_locations, batch_face_locations,
File "C:\Users\username\AppData\Local\Programs\Python\Python36-32\lib\site-pac
face_detector = dlib.get_frontal_face_detector()
AttributeError: module 'dlib' has no attribute 'get_frontal_face_detector'

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported installation on the listed Windows, Python, dlib, and face_recognition versions, then inspect the dlib module imported by AFR.py. Done means the import exposes get_frontal_face_detector and the linked AFR.py example runs without this AttributeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-vision
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.