qmetrics.net

SAM 2

Promptable image and video segmentation model

AI Development PlatformsMachine Learning InfrastructureNo commits in 18+ monthsDesktop/CLI app

SAM 2 has had no code changes for over 18 months (last commit 1 year ago).

SAM 2 segments objects in still images and video streams from clicks, boxes, or masks, with checkpoints and predictors for local GPU inference.

Overview

Segment Anything Model 2 (SAM 2) is a foundation model for promptable visual segmentation across images and videos. Still frames are handled like single-frame video, while video mode tracks masklets over time with a transformer design and streaming memory for sequential processing.

Python packages expose image and video predictors: load a checkpoint, provide prompts, and receive masks. Image workflows mirror the original SAM APIs, including automatic mask generation. Video workflows keep per-object state, accept new prompts mid-sequence, and support multi-object tracking with optional compiled paths for faster video object segmentation.

Checkpoints ship in several sizes with published benchmark scores on SA-V, MOSE, and LVOS-style evaluations. Weights download via provided scripts or Hugging Face loaders. Training and fine-tuning code targets custom image or video datasets, and a separate locally deployable web demo stack mirrors the public interactive experience.

Install on GPU hosts with recent Python, PyTorch, and TorchVision releases; Windows users are directed toward WSL with Ubuntu for setup.

Key features

  • Click and box prompted masks
  • Video masklet propagation
  • Automatic image mask generation
  • Multiple checkpoint size tiers
  • Hugging Face model loading
  • Multi-object video tracking state
  • Optional full-model compilation
  • Custom dataset training support

Use cases

  • Interactive image editing masks
  • Video object tracking
  • Research on segmentation datasets
  • Fine-tuning on domain footage
  • Locally hosted segmentation demos

Similar software

TensorFlow

End-to-end machine learning platform and tooling ecosystem

TensorFlow is a machine learning platform with Python and C++ APIs, optional GPU packages, and companion libraries for data, training, deployment, and visualization.

★ 201.8k⟳ todayApache-2.0

Transformers

Shared model definitions for multimodal ML workloads

Transformers is a Python library that defines pretrained text, vision, audio, and multimodal models once in PyTorch for shared inference and training across the ecosystem.

★ 169.4k⟳ todayApache-2.0

RAGFlow

Open-source RAG engine and agent context platform

RAGFlow ingests heterogeneous documents, builds retrievable knowledge, and supports agent workflows with citations. It can run on your own hardware with Docker or a from-source server stack.

★ 94.8k⟳ todayApache-2.0

Headroom

Local LLM context compression library and proxy

Headroom shrinks tool outputs, logs, JSON, and chat history before LLM calls to cut input tokens while preserving retrievable originals. It offers a Python library, proxy, MCP tools, and agent wrappers.

★ 81k⟳ yesterdayApache-2.0

Unsloth

Local desktop workspace to run and fine-tune AI models

Unsloth is a desktop application to chat with, fine-tune, and serve LLMs, diffusion, audio, and embedding models on your own hardware with optional agent integrations.

★ 80.4k⟳ todayApache-2.0

Models

TensorFlow reference models and modeling utilities collection

The TensorFlow Model Garden hosts implementations of models and modeling solutions for TensorFlow, installable via pip as tf-models-official.

★ 77.6k⟳ 11 days agoApache-2.0