Skip to main content

glider-sleap

Run SLEAP pose models in GLIDER.

Install this, point GLIDER at the folder SLEAP wrote, and it converts once and runs. There is nothing to export beforehand and no command to remember.

uv pip install glider-sleap

What it does

GLIDER runs pose models through onnxruntime, described by a glider_pose.json sidecar next to the model. SLEAP writes a Keras checkpoint and a training_config.json. This plugin is the bridge: it recognises the second shape and produces the first.

Pick a model folder in the Camera panel. If it is a SLEAP folder that has not been converted, GLIDER asks once, converts, and writes model.onnx and glider_pose.json beside the checkpoint. Every later run loads the ONNX directly. Retrain and drop in a new checkpoint and it notices the stamp is stale and offers to convert again — a conversion that quietly answered with the network you just replaced would be the worst outcome available.

Conversion runs in a child process, so TensorFlow does not stay resident in GLIDER for the rest of the session. A few seconds to a couple of minutes, depending on the model.

It does not need SLEAP

That is worth stating plainly, because the opposite is the usual assumption.

A SLEAP model is saved as an ordinary Keras checkpoint. TensorFlow opens it on its own; nothing in sleap is involved in reading one. So this plugin depends on tensorflow-cpu and tf2onnx and not on sleap — which matters, because sleap pins older Pythons than GLIDER runs on and could not share the environment even if it were wanted. That ceiling applies to running SLEAP, not to reading what it wrote.

Verified against SLEAP's own minimal_robot.UNet.single_instance test fixture: loads with plain Keras, converts in one call, and the ONNX matches the original network to within 7e-7 (Python 3.11, tensorflow-cpu 2.21, tf2onnx 1.17).

Why it is a separate package

TensorFlow is a large thing to put in the dependency tree of a lab that tracks with YOLO and has never opened SLEAP. Installing this plugin is how you say you have SLEAP models. GLIDER itself carries onnxruntime and nothing else.

The same reasoning splits DeepLabCut into glider-dlc.

Scope

Single animal. A converted model is run as one decode per frame, producing one set of keypoints, which is what the behaviour classifier downstream expects. Multi-animal SLEAP models (the ones with a PAF head) convert but are not usefully runnable yet.

Python 3.11 to 3.13, the same range GLIDER supports. Conversion is verified on tensorflow-cpu 2.21 with tf2onnx 1.17, and the dependency floors are set so a resolver cannot land you below that: earlier TensorFlow has no 3.13 wheels, and tf2onnx before 1.17 cannot convert a Keras 3 model, which is what any TensorFlow new enough to be worth installing loads a SLEAP checkpoint into.

Converting from the command line

The converter is a plain script and imports nothing from GLIDER, so it also runs on its own — useful on a machine that trains models but does not run experiments:

python -m glider_sleap.convert /path/to/sleap/model/folder

Development

uv pip install -e ./plugins/glider-sleap
PYTHONPATH="src;plugins/glider-sleap/src" QT_QPA_PLATFORM=offscreen pytest plugins/glider-sleap/tests/

The suite runs without TensorFlow. The one test that performs a real conversion skips when TF is absent, which is how CI runs it; everything else — detection, staleness, and the error paths a researcher actually hits — runs everywhere.

Metadata

Release files for glider-sleap 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for glider-sleap 0.1.0
File Size Uploaded Provenance Actions
glider_sleap-0.1.0.tar.gz 15.7 kB With provenance Details for glider_sleap-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for glider-sleap 0.1.0
File Interpreter ABI Platform Actions
glider_sleap-0.1.0-py3-none-any.whl Python 3 none any Details for glider_sleap-0.1.0-py3-none-any.whl

Total release size: 25.9 kB

Release files / glider_sleap-0.1.0.tar.gz

Download URL glider_sleap-0.1.0.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
76e02106f5ae09f823cd53d1a2b12c37580a60f2125f5b2f1bb8572e7078820f
BLAKE2b-256 checksum
How to use checksums
be1d491f2a6956bfb812f9d5e5d91cab558c798f5464b160c54ff82c260cb8ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 25, 2026.

Transparency log

Release files / glider_sleap-0.1.0-py3-none-any.whl

Download URL glider_sleap-0.1.0-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ceee732840852aaaebcb229c8aeaa7529e8582b6441e8b03586b8cc559703af
BLAKE2b-256 checksum
How to use checksums
107e7c940fdc8f3b3d64bbdd956ddc027761acd32d50da0b42eb8b4810cfce78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 25, 2026.

Transparency log

Security for glider-sleap 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for glider_sleap-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page