Feature Reference¶
Command Line Interfaces¶
sleap-label
(or python -m sleap.gui.app
) runs the GUI application.
sleap-train
(or python -m sleap.nn.train
) is the command-line interface for training. Use this for training on a remote machine/cluster/colab notebook.
sleap-track
(or python -m sleap.nn.inference
) is the command-line interface for running inference using models which have already been trained. Use this for running inference on a remote machine such as an HPC cluster or Colab notebook. All training parameters are exposed.
python -m sleap.nn.tracking
allows you to run the cross-frame identity tracker (or re-run with different parameters) without needed to re-run inference. You give it a prediction file.
python -m sleap.info.trackcleaner
is an experimental script which tries to clean the resuls of cross-frame identity tracking by connecting “breaks” where we lose one identity and spawn another. You specify how many identities there should be in a frame (i.e., the number of animals).
python -m sleap.gui.training_editor
allows you to view and create new training profiles. These are the files which specify what the model will be used for (confidence maps, part affinity fields, centroids, or top-down confidence maps), the network architecture (e.g., UNet), and the other training parameters (e.g., learning rate, image rescaling, image augmentation methods). If you want to view an existing profile—including a training_job.json file associated with a trained model—you can specify it’s path as the first command-line parameter. You can also do this if you want to use an exiting profile as a template for creating a new training profile.
python -m sleap.info.write_tracking_h5
allows you to export the tracking data from a SLEAP dataset into an HDF5 file that can be easily used for analysis (e.g., read from MATLAB).
Note: For more details about any command, run with the --help
argument (e.g., sleap-track --help
).
Main GUI Window¶
Mouse¶
Right-click (or control + click) on node: Toggle visibility
Right-click (or control + click) elsewhere on image: Add instance (with pop-up menu)
Alt + drag: Zoom into region
Alt + double-click: Zoom out
Alt + drag on node (or node label): Move entire instance
Alt + click and hold on node (or node label) + mouse wheel: Rotate entire instance
(On a Mac, substitute Option for Alt.)
Double-click on predicted instance: Create new editable instance from prediction
Double-click on editable instance: Any missing nodes (nodes added to the skeleton after this instance was created) will be added and marked as “non-visible”
Click on instance: Select that instance
Click elsewhere on image: Clear selection
Selection Keys¶
Number (e.g., 2) key: Select the instance corresponding to that number
Escape key: Deselect all instances