Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: talmolab/sleap-nn

SLEAP-NN v0.0.3

24 Oct 21:49
d946ec3

Choose a tag to compare

Summary

This release delivers critical bug fixes for multiprocessing support, enhanced tracking capabilities, and significant improvements to the inference workflow. The v0.0.3 release resolves HDF5 pickling issues that prevented proper multiprocessing on macOS/Windows, fixes ID models, and introduces new track cleaning parameters for better tracking performance.

Major changes

Fixed Multiprocessing Bug with num_workers > 0 (#359)

Resolved HDF5 pickling issues that prevented proper multiprocessing on macOS/Windows systems. This fix enables users to utilize multiple workers for faster data loading during training and inference when caching is enabled.

Fixed ID Models (#345)

Fixed minor issues with TopDown and BottomUp ID models.

  • The ID models dataset classes were re-computing the tracks from the labels file. However, they should just grab it from the head config classes parameter.
  • Fix shape mismatch issue with BottomUp ID models

Added Track Cleaning Arguments (#349)

Added new parameters for better track management and cleanup:

  • tracking_clean_instance_count: Target number of instances to clean after tracking
  • tracking_clean_iou_threshold: IOU threshold for cleaning overlapping instances
  • tracking_pre_cull_to_target: Pre-culling instances before tracking
  • tracking_pre_cull_iou_threshold: IOU threshold for pre-culling

Updated Installation Documentation (#348, #351)

Added comprehensive uv add installation instructions for modern Python package management instead of uv pip install method. Added warning for 3.14 python version to prevent installation issues.

Inference workflow enhancements (#360, #361)

Enhanced bottom-up model inference capabilities with improved performance and stability. Fix logger encoding issues on windows and better handle integral refinement error on mps accelerator.

Changelog

SLEAP-NN v0.0.2

29 Sep 21:21
de28b41

Choose a tag to compare

Summary

This release focuses on several bug fixes and improvements across the training, inference, and CLI components of sleap-nn. It includes bug fixes for model backbones and loaders, enhancements to the configuration and CLI experience, improved robustness in multi-GPU training, and new options for device selection and tracking. Documentation and installation guides have also been updated, along with internal refactors to streamline the code consistency.

Major changes

  • Backbones & Models:

    • Fixed bugs in Swin Transformer and UNet backbone filter computations.
    • Corrected weight mapping for legacy TopDown ID models.
  • Inference & Tracking:

    • Removed unintended loading of pretrained weights during inference.
    • Fixed inference with suggestion frames and improved stalling handling.
    • Added option to run tracking on selected frames and video indices.
    • Added thread-safe video access to prevent backend crashes.
    • Added function to load metrics for better evaluation reporting.
  • Training Pipeline:

    • Fixed bugs in the training workflow with the infinite dataloader handling.
    • Improved seeding behavior for reproducible label splits in multi-GPU setups.
    • Fixed experiment run name generation across multi-GPU workers.
  • CLI & Config:

    • Introduced unified sleap-nn CLI with subcommands (train, track, eval) and more robust help injection.
    • Removed deprecated CLI commands and cleaned up legacy imports.
    • Added option to specify which devices to use, with auto-selection of GPUs based on available memory.
    • Updated sample configs and sleap-io skeleton function usage.
    • Minor parameter name and default updates for consistency with SLEAP.
  • Documentation & Installation:

    • Fixed broken documentation pages and improved menu structure.
    • Updated installation instructions with CUDA support for uv-based workflows.

What's Changed

Full Changelog: v0.0.1...v0.0.2

SLEAP-NN v0.0.1

21 Aug 01:30
914c5e4

Choose a tag to compare

SLEAP-NN v0.0.1 - Initial Release

SLEAP-NN is a PyTorch-based deep learning framework for pose estimation, built on top of the SLEAP (Social LEAP Estimates Animal Poses) platform. This framework provides efficient training, inference, and evaluation tools for multi-animal pose estimation tasks.

Documentation: https://nn.sleap.ai/

Quick start

# Install with PyTorch CPU support
pip install sleap-nn[torch-cpu]

# Train a model
sleap-nn train --config-name config.yaml --config-dir configs/

# Run inference
sleap-nn track --model_paths model.ckpt --data_path video.mp4

# Evaluate predictions
sleap-nn eval --ground_truth_path gt.slp --predicted_path pred.slp

What's Changed

Read more