ailia Tech BLOG

AxGazeEstimation : A Machine Learning Model for Estimating Gaze

This is an introduction to「AxGazeEstimation」, a machine learning model that can be used with ailia SDK. You can easily use this model to create AI applications using ailia SDK as well as many other ready-to-use ailia MODELS.


Overview

AxGazeEstimation is a machine learning model developed by ailia Inc. to detect the direction of gaze of a person from an input image.

Source: https://pixabay.com/ja/photos/%E3%83%93%E3%83%B3%E3%83%86%E3%83%BC%E3%82%B8-%E5%A5%B3%E6%80%A7-%E5%B8%BD%E5%AD%90-635244/

Architecture

AxGazeEstimation uses BlazeFaceto detect faces in an image and estimates the gaze using the detected face as input. Two methods of gaze estimation are available: direct estimation from the face image, and estimation from face image combined with face orientation.

The network backbone uses a reduced version of ResNet50 (stage 3).

The training was performed using our in-house dataset made of 97,059 training images, and 11,775 validation images.

Usage

Use the following command to run the gaze estimation on the webcam video stream.

$ python3 ax_gaze_estimation.py -v 0

The following command can be used to estimate the face orientation in combination with the face detection.

$ python3 ax_gaze_estimation.py -v 0 --include-head-pose

ailia-ai/ailia-models(Image from https://pixabay.com/photos/vintage-woman-hat-fashion-style-635244/) ailia input shape: (1, 3, 128, 128) RGB…github.com

Here is an example of AxGazeEstimation in action.

Related topics

BlazeFace : A Machine Learning Model for Fast Detection of Face Positions and Key Pointsmedium.com

HOPE-Net : A Machine Learning Model for Estimating Face OrientationThis is an introduction to「HOPE-Net」, a machine learning model that can be used with ailia SDK. You can easily use this…medium.com

MediaPipe Iris: Detecting Key Points in the EyeThis is an introduction to「MediaPipe Iris」, a machine learning model that can be used with ailia SDK. You can easily…medium.com


ailia Inc. has developed ailia SDK, which enables cross-platform, GPU-based rapid inference.

ailia Inc. provides a wide range of services from consulting and model creation, to the development of AI-based applications and SDKs. Feel free to contact us for any inquiry.