Face_recognition: Faster face recognition in base with more than 1 million encodings.

Created on 29 Nov 2018  路  2Comments  路  Source: ageitgey/face_recognition

  • face_recognition version: Last
  • Python version: 3
  • Operating System: Ubuntu

Hello!
I want to collect pre-calculated encodings of more than 1 million faces in database (mysql,postgres...?) with 128 columns.
And i have face,which I want to find among them.
And than i want search top 5 the most similar faces for need face.

In this https://github.com/ageitgey/face_recognition/issues/238 have already been tips on this subject
@khaledabbad already have solution with Apache Solr. But I'm not familiar with Apache and I don't know how to make a search engine.

What are the possible solutions to find encoding of 1 face in the base of encodings more than 1 million persons? How can you do it as faster as possible?
Solr or other? Examples?

Thank you advance!

Most helpful comment

You might also consider using an approximate nearest neighbors model like https://github.com/lmcinnes/pynndescent/ or Spotify's Annoy project. It speeds up the search for matches by not actually checking every encoding. It's not going to work for every project, but it might work depending on your specific requirements and whether you have lots of images of each person or not.

All 2 comments

You might also consider using an approximate nearest neighbors model like https://github.com/lmcinnes/pynndescent/ or Spotify's Annoy project. It speeds up the search for matches by not actually checking every encoding. It's not going to work for every project, but it might work depending on your specific requirements and whether you have lots of images of each person or not.

@ageitgey

Thanks you.
How to compare if encoding not needed? Can you give an example (pynndescent of annoy)?
How to store data for this? sql or Pickle?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cjosephson picture cjosephson  路  5Comments

lfjd05 picture lfjd05  路  3Comments

xiao543348405 picture xiao543348405  路  5Comments

paulaceccon picture paulaceccon  路  5Comments

InnovativeInventor picture InnovativeInventor  路  6Comments