Skip to content

janclemenslab/leap_utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leap_utils: Utility code for training and running LEAP (see Pereira et al. (2018)).

Installation

Install dependencies:

conda install numpy scikit-image keras tensorflow scikit-learn opencv matplotlib
pip install git+http://github.com/postpop/videoreader

Install leap_utils in production mode

pip install git+http://github.com/janclemenslab/leap_utils.git

or in development mode (-e .)

git clone http://github.com/janclemenslab/leap_utils.git
cd leap_utils
pip install -e .

Analysis pipeline

from leap_utils.preprocessing import export_boxes
from leap_utils.predict import predict_confmaps
from leap_utils.postprocessing import process_confmaps_simple

track_flies()
fix_tracks()

train_network(boxes, positions, ...)

boxes = export_boxes(VideoReader, framenumbers, box_size, box_centers, box_angles)  # DONE
confmaps = predict_confmaps(network, boxes)  # DONE

positions, confidence = process_confmaps_simple(confmaps)
bad_boxes = detect_bad_boxes(positions, confidence)
bad_boxes_fixed = fix_bad_boxes(bad_boxes, postions)
predict_confmaps(bad_boxes)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published