exadel-inc / CompreFace

Leading free and open-source face recognition system
https://exadel.com/accelerator-showcase/compreface/
Apache License 2.0
5.48k stars 750 forks source link

Can I use CompreFace API to detect faces and extract vectors so I can then add then in FAISS to search a lot of faces? #809

Open martinenkoEduard opened 2 years ago

martinenkoEduard commented 2 years ago

Can I use CompreFace API to detect faces and extract vectors so I can then add then in FAISS to search a lot of faces? Is there an API call to get a pure vector?

pospielov commented 2 years ago

yes, you can use a detection service and use face_plugins=calculator parameter

martinenkoEduard commented 2 years ago

What is dimension/size of a vector that it returns? Have anyone tried to store it in Faiss or milvus?

pospielov commented 2 years ago

FaceNet and ArcFace r100 vectors are 512 and the MobileNet ArcFace vector is 128 long. I don't see any problems why they can't be stored in Faiss or Milvus

martinenkoEduard commented 2 years ago

FaceNet and ArcFace r100 vectors are 512 and the MobileNet ArcFace vector is 128 long. I don't see any problems why they can't be stored in Faiss or Milvus

Thanks!)