insightface icon indicating copy to clipboard operation
insightface copied to clipboard

Ideas on How to Increase Speed for Obtaining Face Embeddings

Open ubbikk opened this issue 2 years ago • 1 comments

First of all, thank you for this great library. I'm attempting to speed up the calculation of embeddings for faces and would be glad to hear any ideas on how to do so. Currently, I'm using the following methods:

  1. A Python package: insightface.app.FaceAnalysis
  2. 5-7 processes (until the GPU RAM is full)
  3. Asynchronous loading of images
  4. allowed_modules=['recognition', 'detection']

Here are some of my ideas:

  1. Is it possible to calculate in mini-batches?
  2. Could I use a more lightweight detector?

ubbikk avatar Aug 02 '23 15:08 ubbikk

Did you find any solution to improve speed?

arad2022 avatar Mar 02 '24 07:03 arad2022