Giter Site home page Giter Site logo

codeastra2 / webcam_eyetracking_dl Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 1.69 MB

Pytorch framework for building webcam based eye tracking models. Also includes the Pytorch implementation of GEDDNet.

Python 100.00%
machine-learning web-cam webcam-eyetracking computer-vision pytorch

webcam_eyetracking_dl's Introduction

Webcam Eye tracking with Deep Learning

Introduction

This project provides deep learning models and training framework including the pytorch implementation of Geddnet, for webcam eye tracking. This was done as a part of my work at Semanux.

Environment

This is tested to work on Ubuntu 22.04 LTS, Pytorch 1.10.1 and CUDA driver version 11.3, but should work in any OS. pip install -r requirements.txt

Dataset Preperation

The input consists of (face, left eye, right eye, gaze cooordinates)

Face

alt text

RIght eye

alt text

Left eye

alt text

These patches can be cropped from the dataset using facial landmarks, and the gaze coordinates can be obtained by parsing the dataset, due to propriterary reasons we cannot release details yet. But some hints and tips are coming soon...

Model Training

If you wish change the hyperparameters such as epochs or learning rate, it can be done so in the file hyperparams.json. Run the following commands to train the model, with a GPU it should take ~45 mins for 30 epochs of training.

  • cd model_training
  • python -m webcam_eyetracking.train_model

Inference

The results of the train/test can be found in the reports folder. Here you can find various metrics such as loss curves, metric curves heatmaps representing the general prediction and error distribution.

Error distrubution on the screen

alt text

Euclidean error distance(in mm)

alt text

Our well trained model can predict with an error of +- 3 cm.

Live Demo

Coming soon....

Pre Trained Model

Coming soon....

References

  • Chen, Zhaokang, and Bertram Shi. “Towards High Performance Low Complexity Calibration in Appearance Based Gaze Estimation.” IEEE Transactions on Pattern Analysis and Machine Intelligence, 2022, pp. 1–1. Crossref, https://doi.org/10.1109/tpami.2022.3148386.

webcam_eyetracking_dl's People

Contributors

codeastra2 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.