adpala / leap_utils

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Installation

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

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


Languages

Language:Jupyter Notebook 98.7%Language:Python 1.3%