Skip to content

Social LEAP Estimates Animal Poses (SLEAP)

SLEAP pose estimation demo

GitHub stars Release PyPI - Python Version PyPI Nature Methods

SLEAP is an open-source deep learning framework for multi-animal pose tracking (Pereira et al., Nature Methods, 2022). It provides an end-to-end workflow from labeling to trained models, with a purpose-built GUI for active learning and proofreading.

✨ Features

  • Easy installation – One-line install with support for all major OSes
  • Powerful GUI – Human-in-the-loop workflow for rapidly labeling large datasets
  • Flexible models – Single and multi-animal pose estimation with top-down and bottom-up strategies
  • Customizable architectures – Neural networks that deliver accurate predictions with very few labels
  • Fast training – 15-60 mins on a single GPU for typical datasets
  • Fast inference – Up to 600+ FPS batch processing, <10ms realtime latency
  • Modern backendssleap-io for data handling and PyTorch-based sleap-nn for training

Let's Get Some SLEAP! 🐭🐭


📚 Explore the Docs


🚀 Get some SLEAP!

Quick start

Install uv first:

# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# Windows
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Then install SLEAP:

uv tool install --python 3.13 "sleap[nn]" --torch-backend auto

Launch the GUI:

sleap

Full installation instructions

Learn to SLEAP


🔄 Coming from SLEAP 1.4 or earlier?

New in SLEAP v1.5+

SLEAP v1.5+ introduced major changes including UV-based installation, PyTorch backend via sleap-nn, and modular data workflows with sleap-io. Check out Migration Guide!

SLEAP ≤ 1.4 SLEAP 1.5+
Conda installation UV or pip installation
TensorFlow backend PyTorch backend (sleap-nn)
Monolithic package Modular: GUI + sleap-nn + sleap-io

Legacy Documentation

If you are using SLEAP version 1.4.1 or earlier, please visit the legacy documentation.


Get Help


References

SLEAP is the successor to the single-animal pose estimation software LEAP (Pereira et al., Nature Methods, 2019). If you use SLEAP in your research, please cite:

T.D. Pereira, N. Tabris, A. Matsliah, D. M. Turner, J. Li, S. Ravindranath, E. S. Papadoyannis, E. Normand, D. S. Deutsch, Z. Y. Wang, G. C. McKenzie-Smith, C. C. Mitelut, M. D. Castro, J. D'Uva, M. Kislin, D. H. Sanes, S. D. Kocher, S. S-H, A. L. Falkner, J. W. Shaevitz, and M. Murthy. SLEAP: A deep learning system for multi-animal pose tracking. Nature Methods, 19(4), 2022.

BibTeX
@ARTICLE{Pereira2022sleap,
   title={SLEAP: A deep learning system for multi-animal pose tracking},
   author={Pereira, Talmo D and Tabris, Nathaniel and Matsliah, Arie and
      Turner, David M and Li, Junyu and Ravindranath, Shruthi and
      Papadoyannis, Eleni S and Normand, Edna and Deutsch, David S and
      Wang, Z. Yan and McKenzie-Smith, Grace C and Mitelut, Catalin C and
      Castro, Marielisa Diez and D'Uva, John and Kislin, Mikhail and
      Sanes, Dan H and Kocher, Sarah D and Samuel S-H and
      Falkner, Annegret L and Shaevitz, Joshua W and Murthy, Mala},
   journal={Nature Methods},
   volume={19},
   number={4},
   year={2022},
   publisher={Nature Publishing Group}
}

Contributors

SLEAP was created in the Murthy and Shaevitz labs at the Princeton Neuroscience Institute at Princeton University.

SLEAP is currently being developed and maintained in the Talmo Lab at the Salk Institute for Biological Studies, in collaboration with the Murthy and Shaevitz labs at Princeton University.

Contributors & Funding

Contributors.

  • Talmo Pereira, Salk Institute for Biological Studies
  • Liezl Maree, Salk Institute for Biological Studies
  • Arlo Sheridan, Salk Institute for Biological Studies
  • Arie Matsliah, Princeton Neuroscience Institute, Princeton University
  • Nat Tabris, Princeton Neuroscience Institute, Princeton University
  • David Turner, Research Computing and Princeton Neuroscience Institute, Princeton University
  • Joshua Shaevitz, Physics and Lewis-Sigler Institute, Princeton University
  • Mala Murthy, Princeton Neuroscience Institute, Princeton University

Funding

This work was made possible through our funding sources, including:

  • NIH BRAIN Initiative R01 NS104899
  • Princeton Innovation Accelerator Fund

License

SLEAP is released under a BSD 3-Clause Clear License.