Ross ROSS = Recommend OSS · open-source software intelligence for agents

kijai/ComfyUI-segment-anything-2

ComfyUI nodes to use segment-anything-2 observed · 2026-08-28

github.com/kijai/ComfyUI-segment-anything-2 · Python · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

43/100

  • Activity 44
  • Release rhythm 35
  • Longevity 54

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 764
  • days_rel: n/a
  • days_push: 339
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1214 stars · 86 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A set of ComfyUI custom nodes that bring Meta's Segment Anything 2 (SAM2) models into ComfyUI workflows for promptable image and video segmentation. SAM2 weights are automatically downloaded from Hugging Face in safetensors format into the ComfyUI models/sam2 directory, and generated masks can feed downstream nodes for inpainting or compositing.

Use cases

  • use segment anything 2 inside ComfyUI
  • generate segmentation masks for images in ComfyUI workflows
  • segment and track objects across video frames in ComfyUI
  • create masks for inpainting in stable diffusion pipelines
  • automatically cut out subjects from images or videos
  • run SAM2 models locally with automatic weight downloads

When to choose

  • You already work in ComfyUI and want SAM2 segmentation as drop-in nodes in your node graph
  • You need promptable image or video segmentation masks to drive inpainting, compositing, or other downstream nodes
  • You want safetensors SAM2 weights managed automatically rather than converting checkpoints yourself

When to avoid

  • You need a standalone segmentation library or CLI outside ComfyUI - use the original facebookresearch/segment-anything-2 instead
  • You need production-hardened tooling - the README marks the project as work in progress and for testing
  • You rely on built-in mask postprocessing that requires CUDA extension compilation, which is currently disabled in these nodes

Facets

plugin · maturity active

computer-vision image-processing video-processing machine-learning computer-vision image-processing machine-learning python cross-platform comfyui comfyui-custom-nodes segment-anything-2 sam2 image-segmentation video-segmentation mask-generation promptable-segmentation safetensors inpainting-masks video desktop gpu

1 source

Member repositories

RepositoryRoleHealth v2
kijai/ComfyUI-segment-anything-2main43

For agents

markdown · JSON · MCP: product_card(name="kijai/ComfyUI-segment-anything-2")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem