KP-RPE ViT-B with its keypoint aligner, for OpenKiwi (research preview)
The face model behind OpenKiwi's optional face recognition. Kiwi downloads it only when someone turns face recognition on, and it runs entirely on their own computer.
What this file is
kprpe-vitb-dfa.onnx (463,026,892 bytes, SHA-256
d4770875c2218e5167da27f0eb7fa7e99ae3021d9df093972953b4d7c2bd1627) holds two networks by Minchul Kim, unchanged:
- the face model, KP-RPE ViT-B trained on WebFace12M (minchul/cvlface_adaface_vit_base_kprpe_webface12m),
- its keypoint aligner, DFA MobileNet (minchul/cvlface_DFA_mobilenet).
OpenKiwi only converted them to one ONNX file, with its export tool (tools/export_kprpe.py, to be published with
OpenKiwi's code). The ONNX file gives the same templates as the PyTorch model (lowest cosine 0.9999999998 on 1,000
public faces).
- Input
data: 1 x 3 x 112 x 112, RGB,(pixel - 127.5) / 127.5, a face already aligned with five points. - Output 0: the 512-number face template. Output 1: the five keypoints the aligner found.
Licence and use
The CVLFace code is under the MIT licence. The weights' pages give no licence of their own and ask users to follow the licence of the training dataset; the face model was trained on WebFace12M, a research dataset of web photos, and the aligner's page names no training data. So this file is offered for personal, non-commercial use only.
How it was tested, and its limits
On one home (one day, two residents), at the same stranger rate, it named 63% of faces from 3 learned photos (Nov 18 re-run) against 44% for AdaFace IR-101, with fewer wrong names. That is a small test: not yet a week of a home, and not real strangers. About 76 ms a face on a desktop CPU.
Citation
M. Kim, Y. Su, F. Liu, A. Jain, X. Liu, "KeyPoint Relative Position Encoding for Face Recognition", CVPR 2024. arXiv:2403.14852