Skip to content

Latest commit

 

History

99 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aind-capsule-eye-tracking

under development

usage

outputs

  • results/*DLC_resnet50_universal_eye_trackingJul10shuffle1_1030000.h5 file with (x, y, likelihood) for each (cr*, pupil*, eye*) point in each frame
  • results/ellipses.h5 with (center_x, center_y, width, height, phi) for ellipses fit to each set of points (cr*, pupil*, eye*)
    • width: semi-major axis (a in diagram)
    • height: semi-minor axis (b in diagram)
    • phi: counterclockwise rotation of major-axis in radians from x-axis of video
  • results/qc/*.png various images for checking results

links

TODO

  • read rig.json for parameters
    • check for pixel^2 -> cm^2 conversion
  • ? output DLC annotation timeseries to NWB.acquisition
  • output processed BehaviorSeries/Events to NWB.processing
  • store unobserved pupil frames (blinks or stress) in nwb
  • add to required metadata to processing.json
  • ? use rig info to compute gaze location on monitor
  • create asset from results automatically

done

  • setup DLC env
  • get files and config from lims process
  • add DLC project to data asset
  • get DLC running
  • get ellipse-fitting running
  • parallelize ellipse-fitting to use all 16 cores
  • output random selection of video frames with annotated points + ellipses overlaid
  • compute pupil area timeseries
  • fix index error (0 out of bounds, axis 1)
  • fix startup warnings
  • additional validation of ellipses (within frame, pupil/cr within eye)

About

Port of the lims2 eye-tracking pipeline - outputs annotated points and ellipse fits for eye-perimeter, pupil and corneal reflection.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Contributors

Languages