ageitgey / ageitgey/face_recognition

The face_recognition.face_encoding function cause CPU 100% and system halted - Raspberry pi

Open
#616 1 comment 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: 1.2.3
  • Python version: 2.7
  • Operating System: Raspbian Stretch
  • Device: Raspberry Pi 3 Model B
Description

I am trying to use face_recognition model on raspberry pi. I follow the instruction step by step, but I could not run the "facerec_on_raspberry_pi.py". It seem like when I run the that file, the cpu usage becomes 100%.

The only thing i did which is different with the instruction is I used python 2 to compile the dlib.
$ sudo python setup.py install --compiler-flags "-mfpu=neon"

I have to use it as I need to deploy the function on Amazon greengrass. They only support python 2.7 :(
I have debug it for a whole day, but still couldn't fix it. Does anyone know the solution? Help!

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 behavior from facerec_on_raspberry_pi.py with Python 2.7, face_recognition 1.2.3, Raspbian Stretch, and the Raspberry Pi 3 Model B. Compare the dlib build using the reported -mfpu=neon compiler flag with the project instructions; done means identifying the cause of the CPU saturation and documenting a verified compatible setup or fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, raspberry-pi
Domain
embedded-iot, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.