Skip to content

Part of BEng Thesis: a set of photos of eyes with annotations of 7 points, trained Hourglass Model to infer them

License

Notifications You must be signed in to change notification settings

bartoszptak/Gaze_Points_Dataset_Model

Repository files navigation

eyes

Author: Bartosz Ptak

If you use a dataset or model, please inform about the source.

Install requirements

conda create --name gaze python=3.6.4 
conda activate gaze
conda install -c conda-forge dlib
conda install jupyter tensorflow-gpu=1.12
pip install \
  numpy==1.16 \
  requests \
  imutils \
  opencv-python==3.4.1.15 \
  pandas

Downloads

Use python get_big_files.py to download all files
or
download directly:

Dataset

Dataset consists of 2670 training data and 256 test and validation data. Data structure:

  • image file with resolution 120x60px:
    samle_eye
  • image landmarks:
    landmarks
file,L_x,L_y,R_x,R_y,CC_x,CC_y,CL_x,CL_y,CR_x,CR_y,CU_x,CU_y,CD_x,CD_y
test_imgs/eye_8.png,14,32,113,41,89,33,72,33,105,38,89,16,90,49

Model

Model based on hg_blocks.py from Stacked Hourglass Networks for Human Pose Estimation paper.

Train

  • loss (MSE multiplied by 4 because heatmaps are scaled + punishment for the wrong side from the inside of the eye)
    loss
  • metric (MAE multiplied by 4 because heatmaps are scaled)
    metric

Sample

  1. Input image:
    im

  2. Result heatmaps heatmaps

  3. Result points
    points

About

Part of BEng Thesis: a set of photos of eyes with annotations of 7 points, trained Hourglass Model to infer them

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published