gaze-nc

Non-commercial use only. Webcam gaze estimation: from an ordinary webcam frame, predicts where on the screen you are looking, after a 9-dot calibration. Runs in the browser with onnxruntime-web (WebGPU or wasm).

  • Code and browser demo: https://github.com/kkrausse/gaze
  • Built on Meta's Sapiens2 0.4B (image backbone) with transformer blocks that cross-attend to the calibration frames.
  • Trained with non-commercial datasets (MPIIFaceGaze, UT Multiview, EVE), so these weights are for non-commercial use. For commercial use see kkrausse/gaze, which is trained without them.
  • This checkpoint: m68.

Files

file what
model.json everything the demo needs to run the graphs (window layout, bins, file list)
xattn.onnx + xattn.onnx.data per-frame graph, fp16 (fp32: xattn.fp32.onnx + .data)
kv.onnx once per calibration: the calibration frames' keys and values, fp16 (fp32: kv.fp32.onnx)

Inputs and outputs are described in the code repository.

Evaluation

Mean gaze-point error after 9-dot calibration, in mm on the screen and in degrees (atan of the error over the face-to-target distance). Same frames, same calibration and same protocol for both models; single training seed each.

held-out set n gaze (m69) gaze-nc (m68)
Webcam sessions, locked test (never used to pick a model) 55 sessions, 1068 dots 21.1 mm / 2.32° 18.0 mm / 1.99°
Webcam sessions, standard test 19 sessions, 480 dots 19.8 mm / 2.20° 17.3 mm / 1.93°
MPIIFaceGaze, 3 held-out people 761 frames 29.2 mm / 3.26° 20.4 mm / 2.31°
UT Multiview, 5 held-out people 612 frames 41.0 mm / 3.83° 20.8 mm / 1.95°
EVE, held-out person val01 (4 cameras) 110 frames 30.1 mm / 2.84° 19.6 mm / 1.85°
  • The webcam sessions are one person at one ~300 mm-wide laptop-size screen, with MacBook, phone and Sony cameras at about 50 cm. Locked test by camera, m69 / m68: MacBook 19.1 / 16.5 mm, phone 21.7 / 23.2 mm, Sony 21.3 / 17.5 mm.
  • gaze-nc was trained on other people from MPIIFaceGaze, UT Multiview and EVE; for gaze those three datasets are entirely unseen (cross-dataset), calibrated with 9 frames of the same recording.
  • gaze is an early version and will be replaced.
  • Without calibration both models are far off (75-110 mm): calibration is required.

Licence

Non-commercial use only, because of the datasets above. In addition, these weights are a derivative of Sapiens2 and are distributed under the Sapiens2 License (LICENSE.md, Meta), including its restrictions. The code in the GitHub repository is MIT.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for kkrausse/gaze-nc

Quantized
(3)
this model