HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
davidsandberg
facenet
Python2017–2021
davidsandberg / facenet

facenet

Face recognition using Tensorflow

7Distinct people
7Mentions
0Explicit recommenders
14.4KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Face recognition using Tensorflow

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 5:04:57 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year7 dated mentions

Observed mentions: 2017-05-28 18:45:09 UTC to 2021-02-21 18:58:31 UTC.

01232017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 3 mentions; 0 submissions, 3 comments20172018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments20192020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2021

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC303
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC101
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC000
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC202
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC101

What Hacker News says

7 sources
We are going to add landmarks information in one of the next releases. I think It could be calculated from this data. But I understand that it's better to add such functionality to CompreFace, I'll add this to our backlog About comparison with other systems - as I mentioned we use Facenet under the hood. According to their GitHub, the accuracy on LFW data set is 99.65%: https://github.com/davidsandberg/facenet#pre-trained-models
In Show HN: CompreFace is a free and open-source face recognition software
Note that if you use open source models, it’s orders of magnitude cheaper. In my own tests, an off the shelf face DNN-based face detector [1] ran at 20 FPS on a 16 vCPU machine (Google Cloud). With our hand-rolled distributed execution engine [2], we processed around 40 million images for about $2000, which is 14x cheaper than the cheapest figure cited in OP. I don’t know the accuracy difference, but it sounds like OP will cover this in the next post. [1] https://github.com/davidsandberg/facenet/tree/master/src/ali... [2] https://github.com/scanner-research/scanner
In Face detection – An overview and comparison of different solutions
I am developing Deep Video Analytics [1] which incorporates FaceNet [2] and MTCNN detector. 1. What makes you think that governments would openly release their recognition models? 2. Do you have any hard numbers? 3. What's the difference between manipulating an image vs. just blurring/blacking it out, since the latter essentially gives you complete anonymity. In my experience all Adversarial techniques fall apart when another algorithm is added to the mix (including the recent ones by OpenAI [3]). As a result I am frankly distrustful of any claim about protecting identity. The State of Art in Face Recognition moves extremely fast, and these are just publicly available / permissively licensed models, and not what Government agencies around the world are experimenting on with their billion face datasets. [4] [1] http://www.deepvideoanalytic
Read the rest
In Launch HN: D-ID (YC S17) – Protecting Identities from Face Recognition Tech
I have used OpenCV's face detection and recognition capabilities for a couple of projects - home security system using Odroid and IR camera modules, a side project for cat recognition, testing low-res cheap USB cameras in low lighting - and have become fairly familiar with its gotchas. Its weak area currently is the accuracy of face detection. Before recognizing the identity of a face, you have to first find the positions of faces in an image. OpenCV provides multiple algorithms for this - cascades of weak classifiers likes Haar cascades, Local Binary Pattern cascades, Histogram of Gradients cascades - and a number of pretrained models of frontal and profile human faces for each of those algorithms. There's even a frontal cat face model! But all of them suffer from high false positives or false negatives depending on subject distanc
Read the rest
e and ambient lighting levels. The cat model has trouble with even the slightest of angles. So face alignment is a mandatory pre-processing step with OpenCV's models. But OpenCV doesn't provide any end-to-end alignment routines - it's all upto you to write the alignment code. The dlib library has all that built in. Coming to OpenCV face recognition, it provides 3 approaches - eigen faces, fischer faces and LBPH faces. Its docs explain the shortcomings of each well. In theory, LBPH should give the best accuracy, but I consistently found Fischer giving the highest among the three. Recognition too requires considerable preprocessing - left and right histogram equilization, cropping out hair and neck areas, etc. All the pre-processing makes dataset preparation cumbersome. But it does work okish - 65 to 75 percent accuracy - with smallish datasets of just 20 frontal faces per person. If you plan to start with OpenCV for face capabilities, I suggest using dlib instead. I haven't used OpenBR but eyeballing the code tells me it too uses OpenCV face APIs underneath and another library named stasm which has face alignment capabilities similar to dlib but using OpenCV. OpenBR seems to make building preprocessing pipelines easier using its own DSL - that should reduce the trial and error time significantly. But it doesn't add any new algorithm. I haven't used OpenFace but looked into it in the past. It uses dlib for face detection and alignment, and then uses deep convolutional neural network for feature extraction and recognition instead of eigen, fischer or LBPH. These convolutional features are likely to do a better job than OpenCV's cascade features. I'm not sure about the ideal training dataset size though. Generally, in such cases where a dataset is likely to be small due to practical restrictions, the preferred deep learning approach is transfer learning where a large pretrained model like ImageNet is used for initial layers and only the last few layers are retrained on the user's face dataset. I've used deep object detection frameworks like YOLO and ResNet R-CNN in other contexts, and found them to be good for person detection. I think a deep object detection trained on faces to output face positions combined with deep face recognition is the best combination. FaceNet does exactly that (https://github.com/davidsandberg/facenet) and is probably the best one right now. All said, identity recognition in our brains is actually multimodal (face, body, gait, voice, gesture, etc). AFAIK, all the existing stacks support only frontal face recognition with some tolerance for transformations, and none of them support even recognition using profile face images, let alone multimodal identity recognition.
In Ask HN: What is the current state of open-source face recognition?

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.