GazeDetector ONNX weights for ezonnx
This bundle packages Intel/OpenVINO Open Model Zoo gaze-pipeline models for the GazeDetector wrapper in ezonnx. The wrapper uses ezonnx YuNet for face detection; the YuNet weights are not duplicated in this repository.
| File | Original model |
|---|---|
gazedetector_default_gaze.onnx |
gaze-estimation-adas-0002 |
gazedetector_default_head-pose.onnx |
head-pose-estimation-adas-0001 |
gazedetector_default_landmarks.onnx |
facial-landmarks-35-adas-0002 |
gazedetector_default_eye-state.onnx |
open-closed-eye-0001 |
The first three files were converted from the official FP32 OpenVINO IR to ONNX opset 19 and have OMZ-compatible output names. The eye-state model is the unmodified upstream ONNX under a new filename. The Python wrapper applies the eye-state input mean and scale from its Open Model Zoo configuration. The converted models were numerically compared with the original IR on CPU.
To reproduce, download the FP32 XML/BIN pairs and the eye-state source file
(open-closed-eye.onnx) with the Open Model Zoo downloader or from each model's
model.yml. Collect them in one directory and run python convert.py input output
with openvino2onnx==1.1.0 and onnx==1.18.0.
Use and limitations
from ezonnx import GazeDetector
result = GazeDetector(camera_angle_threshold_deg=15)("image.jpg")
print(result.gaze_vectors, result.valid, result.looking_at_camera)
The camera-facing flag is a configurable angle test, not a calibrated probability or evidence of attention. Closed or unusable eyes invalidate a gaze estimate. Camera position, small face crops, lighting, eyewear and pose affect results. Validate the angle threshold on the intended setup.
Attribution
The original models are distributed under Apache-2.0 by Open Model Zoo and OpenVINO Training Extensions, respectively. See LICENSE, LICENSE.eye-state, and NOTICE for source attribution and changes.