Skip to content
imaged

Face recognition

ArcFace R50 (WebFace600K)

Turns a face into 512 numbers for telling people apart: InsightFace's standard recognizer. Non-commercial research only.

Non-commercial research onlyface recognitionface embeddingarcfaceinsightfacenon-commercial
Choose a variant

About this model

ArcFace turns a face into an embedding, a list of 512 numbers. Two photos of the same person give embeddings that point the same way (cosine similarity near 1); different people give low similarities. Compare a new face with the embeddings you stored to verify or identify someone.

This is InsightFace's iResNet-50 trained with the ArcFace loss on WebFace600K, the recognizer in its default buffalo_l pack. InsightFace reports for that pack 99.83% on LFW, 99.33% on CFP-FP, 98.23% on AgeDB-30 and 97.25% on IJB-C (TAR at FAR 1e-4).

The pack aligns the face itself: pass the five landmarks from a face detector with the photo, and Slab warps the face onto ArcFace's template as InsightFace does. In our check, feeding a plain box crop instead brought the similarity to the correct embedding down to 0.63 on average, with a quarter of faces below 0.5.

What you can build

  • Face login and verification against a stored face
  • Group a photo library by person
  • Recognize enrolled members at a door or a kiosk
  • Remove duplicate faces from a dataset

Astronaut crew portrait

f16
Input
Portrait of ASTP crews - restoration

Adam Cuerden, Public domain, https://commons.wikimedia.org/wiki/File:Portrait_of_ASTP_crews_-_restoration.jpg

Output
The photo with the 5 compared faces numbered
5 faces, numbered on the photo (Apple Neural Engine, FP16 pack). Each face against the same face in a mirrored copy of the photo (same person): 1: 0.97, 2: 0.97, 3: 0.97, 4: 0.96, 5: 0.97.
The faces against each other (different people; 1.00 on the diagonal):
face 1:  1.00  -0.09   0.16   0.09   0.00
face 2: -0.09   1.00  -0.01   0.05   0.02
face 3:  0.16  -0.01   1.00   0.02   0.00
face 4:  0.09   0.05   0.02   1.00   0.01
face 5:  0.00   0.02   0.00   0.01   1.00

People laughing

f16
Input
People laughing at a dinner (4563388022)

State Library and Archives of Florida, Public domain, https://commons.wikimedia.org/wiki/File:People_laughing_at_a_dinner_(4563388022).jpg

Output
The photo with the 6 compared faces numbered
6 faces, numbered on the photo (Apple Neural Engine, FP16 pack). Each face against the same face in a mirrored copy of the photo (same person): 1: 0.95, 2: 0.96, 3: 0.97, 4: 0.94, 5: 0.94, 6: 0.95.
The faces against each other (different people; 1.00 on the diagonal):
face 1:  1.00   0.13   0.17   0.13   0.04   0.07
face 2:  0.13   1.00  -0.03   0.02   0.01   0.10
face 3:  0.17  -0.03   1.00   0.10  -0.00   0.01
face 4:  0.13   0.02   0.10   1.00   0.10   0.09
face 5:  0.04   0.01  -0.00   0.10   1.00  -0.04
face 6:  0.07   0.10   0.01   0.09  -0.04   1.00

Variants & downloads

Choose the build for your app

Model files are hosted on Google Drive. Large files may open a confirmation page before downloading.

Standard

Slab

Weights stored in FP16: half the size of FP32, the same embeddings (see Accuracy).

Platforms: macos · android

arcface-r50-f16.slab

85.3 MB · Hosted download

Download
SHA-256 checksum
db355c78968dfc881092f569fe33bc50831cf5a1e74350ae7ad6ac3c6c1b196a

NOTICE-InsightFace.txt

866 B

Download
SHA-256 checksum
ef1381ec128df0f01f989d424fc370afa1e4e025939816d4150f682fc26d6070
Conversion details
command
curl -LO https://github.com/deepinsight/insightface/releases/download/v0.7/buffalo_l.zip && unzip -p buffalo_l.zip w600k_r50.onnx > model.onnx slab-load convert model.onnx model.slab --input input.1=1x3x112x112 --meta task=embed --meta align=arcface --meta resize=stretch --meta color=rgb --meta normalize=raw255 --meta mean:f32=127.5,127.5,127.5 --meta std:f32=127.5,127.5,127.5 slab-load quantize model.slab arcface-r50-f16.slab --f16 slab-load meta set arcface-r50-f16.slab default_backend.macos=npu

Integration examples

Python

python

import slab

cfg = slab.Config(cache_dir="/tmp/slab_cache", license=open("license.slablic.txt").read())
detector = slab.Session(cfg, "scrfd-10g-kps-f16.slab", warmup=True)
recognizer = slab.Session(cfg, "arcface-r50-f16.slab", warmup=True)

def embed(path):
    photo = slab.Frame.open(path)
    face = detector.run(slab.Input(frame=photo)).boxes(score_threshold=0.5, iou_threshold=0.4)[0]
    out = recognizer.run(slab.Input(frame=photo, landmarks=face.landmarks))   # the pack aligns the face
    out.normalize_l2()
    return out

print(embed("a.jpg").cosine_similarity(embed("b.jpg")))   # near 1: same person

Device & backend compatibility

Pack default: macos / NPU. Fastest on the Mac (about 4 ms per face) with the same embeddings to 0.999.

Available execution backends for ArcFace R50 (WebFace600K)
PlatformEngineStatusPrecision
apple

CPU

CPU

Supported

Measured on macOS.

f32
apple

Metal

GPU

Supported

Measured on macOS.

f32
apple

Apple Neural Engine

NPU

Supported

Measured on macOS. The default. The Neural Engine computes in FP16.

f16
android

CPU

CPU

Supported

Measured on a Samsung Galaxy S23 Ultra (Snapdragon 8 Gen 2, Adreno 740), Android 17.

f32
android

Vulkan

GPU

Supported

Measured on a Samsung Galaxy S23 Ultra (Snapdragon 8 Gen 2, Adreno 740), Android 17.

f32
android

Qualcomm Hexagon NPU (QNN)

NPU

Supported

Measured on a Samsung Galaxy S23 Ultra (Snapdragon 8 Gen 2, Adreno 740), Android 17. The NPU computes in FP16 (the int8 pack's weights are widened to FP16).

f16

Performance

Results depend on the device, runtime, and test conditions. Each measurement keeps its own context.

Mac with Apple M1 Max

Slab · CPU

macOS 26.6.2

23.5 ms

Measured time · scope below

f16Session open (ms): 39 Platform: macos Runs: 100 Input: 1, 3, 112, 112 Measured: 2026-10-28

Median of 100 warm runs of the model for one face (Slab's run time). Aligning the face from a 1920 x 1080 frame and running the model on the CPU takes 25.6 ms in all (23.5 ms for the model alone).

Mac with Apple M1 Max

Slab · GPU

macOS 26.6.2

7.3 ms

Measured time · scope below

f16Session open (ms): 217 Platform: macos Runs: 100 Input: 1, 3, 112, 112 Measured: 2026-10-28

Median of 100 warm runs of the model for one face (Slab's run time). Aligning the face from a 1920 x 1080 frame and running the model on the CPU takes 25.6 ms in all (23.5 ms for the model alone).

Mac with Apple M1 Max

Slab · NPU

macOS 26.6.2

3.7 ms

Measured time · scope below

f16Session open (ms): 1033 Platform: macos Runs: 100 Input: 1, 3, 112, 112 Measured: 2026-10-28

Median of 100 warm runs of the model for one face (Slab's run time). Aligning the face from a 1920 x 1080 frame and running the model on the CPU takes 25.6 ms in all (23.5 ms for the model alone).

Samsung Galaxy S23 Ultra (Snapdragon 8 Gen 2)

Slab · CPU

Android 17

170.0 ms

Measured time · scope below

f16Session open (ms): 167 Platform: android Runs: 79 Input: 1, 3, 112, 112 Measured: 2026-11-06

Median of 79 warm runs of the model (Slab's run time). open_ms: opening the session. Peak memory (resident) after the runs: 248 MB.

Samsung Galaxy S23 Ultra (Snapdragon 8 Gen 2)

Slab · GPU

Android 17

56.0 ms

Measured time · scope below

f16Session open (ms): 140 Platform: android Runs: 100 Input: 1, 3, 112, 112 Measured: 2026-11-06

Median of 100 warm runs of the model (Slab's run time). open_ms: opening the session with the GPU programs already in the cache folder (the first open on a device compiles them, about 0.3 s more). Peak memory (resident) after the runs: 243 MB.

Samsung Galaxy S23 Ultra (Snapdragon 8 Gen 2)

Slab · NPU

Android 17

3.5 ms

Measured time · scope below

f16Session open (ms): 561 Platform: android Runs: 100 Input: 1, 3, 112, 112 Measured: 2026-11-06

Median of 100 warm runs of the model (Slab's run time). open_ms: opening the session, including preparing the model for the Hexagon NPU. Peak memory (resident) after the runs: 309 MB.

Accuracy checks

macos · CPU · f16

Faces and landmarks from InsightFace's SCRFD (det_10g on ONNX Runtime, score 0.5); reference embeddings from InsightFace's norm_crop and the same ONNX model on ONNX Runtime; 294 faces in 41 public-domain and CC0 photos (Wikimedia Commons). Scores are cosine similarities between Slab's and the reference embedding of the same face

With the pack's alignment from the photo and landmarks: 0.9994 on average, 0.9717 at worst. On identical aligned tensors: 1.00000 on average, 1.0000 at worst. For scale, the two most similar different faces in the set score 0.58.

macos · GPU · f16

Faces and landmarks from InsightFace's SCRFD (det_10g on ONNX Runtime, score 0.5); reference embeddings from InsightFace's norm_crop and the same ONNX model on ONNX Runtime; 294 faces in 41 public-domain and CC0 photos (Wikimedia Commons). Scores are cosine similarities between Slab's and the reference embedding of the same face

With the pack's alignment from the photo and landmarks: 0.9994 on average, 0.9717 at worst. On identical aligned tensors: 1.00000 on average, 1.0000 at worst. For scale, the two most similar different faces in the set score 0.58.

macos · NPU · f16

Faces and landmarks from InsightFace's SCRFD (det_10g on ONNX Runtime, score 0.5); reference embeddings from InsightFace's norm_crop and the same ONNX model on ONNX Runtime; 294 faces in 41 public-domain and CC0 photos (Wikimedia Commons). Scores are cosine similarities between Slab's and the reference embedding of the same face

With the pack's alignment from the photo and landmarks: 0.9990 on average, 0.9778 at worst. On identical aligned tensors: 0.99954 on average, 0.9962 at worst. For scale, the two most similar different faces in the set score 0.58.

android · NPU · f16

Slab's CPU engine (FP32) on the same 1920 x 1080 photo

Cosine similarity of the output with the CPU's: 1.00000.

Before you choose this model

  • Non-commercial research use only (see License).
  • Needs the five landmarks of a face detector such as SCRFD or RetinaFace for good results.
  • It does not detect spoofing: a printed photo or a screen gives the same embedding.
  • The similarity that separates people depends on the camera and the population; measure your own threshold.
  • Face embeddings are biometric data under laws such as the GDPR and Illinois' BIPA: get consent before storing them.
  • 85 MB as FP16 (47 MB as int8), large for some apps.