Closed wareziom closed 3 years ago
This issue isn't related to this repository, so I'll close it for now.
As for your question you should look at FAISS or Milvus which are greatly optimized ANN search libraries, capable of searching multiple embeddings in single request.
Hi. I can do face recognition in real time using the Python insightface package and onnx pre-trained models. (https://github.com/deepinsight/insightface/tree/master/python-package) I really face a lot of questions and challenges if you please help me.
cuda 11.1 mxnet :1.8.1 from source installed onnxruntime-gpu:1.7.0 numpy:1.17.0
I use the following code to identify faces for 1000 feature extracted faces:
Here I use different images for identification and each image has a different number of faces. For example, one image has one face and the other image has 6 faces and the other has 15 faces. After testing different images, I came up with the following outputs:
picture 1 (1 face ) >>> elapsed time for extract encodings: 0.019 s , elapsed time for compare face in 1000 data: 0.009 s picture 2 (6 faces ) >>> elapsed time for extract encodings: 0.057 s , elapsed time for compare face in 1000 data: 0.05 s picture 2 (15 faces ) >>> elapsed time for extract encodings: 0.19 s , elapsed time for compare face in 1000 data: 0.22 s
This is not at all useful for my purpose, considering real-time detection using multiple cameras with at least 20,000 faces for comparison. How can I reduce this time? Am I doing the right thing? Thank you in advance for your reply