Instructions to use czrcbl/sface-mediapipe with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MediaPipe
How to use czrcbl/sface-mediapipe with MediaPipe:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
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.alignCropdoes. - 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