ageitgey / ageitgey/face_recognition
Can't get face location with GPU process
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 56.8k
- Forks
- 13.7k
- PR merge metrics
- No merged PRs in 30d
Description
Python : 3.5.6
Face_recognition : 1.2.3
dlib : 19.16.99
GPU : Tesla P100 16Gb
hello, i have problem when working with face on ID Card on my country, many ID card can detect the face location. But sometime i can't get face location with this line code. I have try add more in upsample like 5 (but got memory allocation) :
face_locations = face_recognition.face_locations(id_card, number_of_times_to_upsample=1, model="cnn")
compare_encode = face_recognition.face_encodings(idcard, face_locations)[0]
print(face_locations)
any advices for this ? Thank you
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No project file or test is named; start by reproducing the reported face_locations call with the listed Python, face_recognition, dlib, GPU, and CNN settings. Compare the failing ID-card images with successful ones and investigate the memory allocation reported when upsampling to 5. Done would require identifying a reproducible cause or documenting a confirmed workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-vision
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100