SFace for MediaPipe's Image Embedder

OpenCV Zoo's SFace face recognition model (face_recognition_sface_2021dec.onnx), converted to TFLite with onnx2tf and given the metadata MediaPipe's Image Embedder needs.

  • Input: 1x112x112x3 RGB, pixel values 0-255 (metadata normalization: mean 0, std 1; the model normalizes itself). The face must already be aligned to SFace's 5-point template, as OpenCV's FaceRecognizerSF.alignCrop does.
  • Output: 128-value embedding. Compare L2-normalized embeddings by cosine similarity; OpenCV's match threshold is 0.363.
  • Gives the same embeddings as the ONNX model on OpenCV (cosine 1.000000 on the test faces).

License: Apache 2.0, as the original SFace model.

Downloads last month
16
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support