Notebooks

Here are Jupyter notebooks you can run to try SLEAP on Google Colaboratory (Colab). Colab is great for running training and inference on your data if you don’t have access to a local machine with a supported GPU.

Training and inference on an example dataset

In this notebook we’ll show you how to install SLEAP on Colab, download a dataset from the repository of sample datasets, run training and inference on that dataset using the SLEAP command-line interface, and then download the predictions. This notebook can be a good place to start since you’ll be able to see how training and inference work without any of your own data and without having to edit anything in the notebook to get it to run correctly.

Training and inference on your own data using Google Drive

Once you’re ready to run training and inference on your own SLEAP dataset, this notebook walks you through the process of using Google Drive to copy data to and from Colab (as well as running training and inference on your dataset).

Analysis examples

Once you’ve used SLEAP to successfully estimate animal pose and track animals in your videos, you’ll want to use the resulting data. This notebook walks you through some analysis examples which illustrate how to read and interpret the data in the analysis HDF5 files which you can export from SLEAP.