ageitgey / ageitgey/face_recognition

performance difference between jetson nano and PC

Open
#844 3 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: 1.2.3(both)
  • Python version: 3.5.2
  • Operating System: windows10 and ubuntu
Description

When I ran my test code on Windows, the test images worked perfectly. After I ported the code to jetson nano(ubuntu), face_recognition could not recognize the picture at all.
当我在windows下测试人脸识别的时候,代码很完美的识别人脸,但是将代码移植到jetson nano(ubuntu)后,完全不能识别。

What I Did

My code:
`# Optional - the bounding boxes of each face if you already know them.
known_image1 = face_recognition.load_image_file("images/lv/微信图片_20190603103821.jpg")
known_image2 = face_recognition.load_image_file("images/lv/424.jpg")
known_image3 = face_recognition.load_image_file("images/lv/微信图片_20190603150416.jpg")
unknown_image = face_recognition.load_image_file("test_image/微信图片_20190603195500.jpg")

up_samples = 2
boxes1 = face_recognition.face_locations(known_image1)
boxes2 = face_recognition.face_locations(known_image2)
boxes3 = face_recognition.face_locations(known_image3)
un_boxes = face_recognition.face_locations(unknown_image)

print('start encoding')
known_image_en1 = face_recognition.face_encodings(known_image1, boxes1)[0]
known_image_en2 = face_recognition.face_encodings(known_image2, boxes2)[0]
known_image_en3 = face_recognition.face_encodings(known_image3, boxes3)[0]
unknown_image_en = face_recognition.face_encodings(unknown_image, un_boxes)[0]

know_faces = [
known_image_en1,
known_image_en2,
known_image_en3
]
face_distances = face_recognition.face_distance(know_faces, unknown_image_en)

result = face_recognition.compare_faces(know_faces, unknown_image_en)
print(result)`

The result is [True, True, True]. But in Jetson nano, I got [False, False, False]. I didn't change images

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 difference on Windows and the Jetson Nano using the supplied calls to face_locations, face_encodings, face_distance, and compare_faces. Compare the relevant environment and dependency details, then document a confirmed cause or a minimal reproducible report showing what must change for matching results across platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-vision, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.