segment-anything-model

Generate object masks from point, box, or mask prompts in images.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/overviewlabs/WHOX --skill segment-anything-model-overviewlabs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: segment-anything-model
Source: https://github.com/overviewlabs/WHOX/tree/main/skills/mlops/models/segment-anything
Command: npx skills add https://github.com/overviewlabs/WHOX --skill segment-anything-model-overviewlabs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

SAM provides zero-shot object segmentation by generating high-quality masks for objects in images from prompts such as points, boxes, or masks, or by automatically discovering all object masks in an image.

Core Features & Use Cases

  • Zero-shot segmentation across diverse domains without task-specific training.
  • Flexible prompts: point, bounding box, or mask inputs, enabling interactive annotation.
  • Automatic mask generation with quality metrics for data labeling pipelines.
  • Multi-model variants (ViT-B/L/H) and deployment options (PyTorch, ONNX).

Quick Start

Run a minimal example by loading the model, setting your image, and generating a single mask using a foreground point.

Frequently Asked Questions about segment-anything-model

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform zero-shot image segmentation on an object without task-specific training?

Zero-shot image segmentation is performed by generating high-quality object masks from prompts like points, boxes, or previous masks, or automatically discovering all object masks in an image without requiring task-specific training.

Can I use bounding box and point prompts together for interactive image annotation?

Yes, interactive image annotation supports flexible prompts including points, bounding boxes, and previous masks, enabling precise mask generation for targeted objects within your image processing pipeline.

Does the Segment Anything Model support ONNX deployment for computer vision pipelines?

Yes, the Segment Anything Model supports ONNX deployment alongside PyTorch, allowing you to export and run zero-shot image segmentation within optimized computer vision pipelines across various environments.

What PyTorch and Transformers dependencies are required to run zero-shot segmentation?

Running zero-shot segmentation requires installing compatible checkpoints with specific dependencies, including segment-anything, transformers>=4.30.0, and torch>=1.7.0, to ensure proper multi-scale processing and mask generation.

How does automatic mask generation work for data labeling pipelines?

Automatic mask generation works by discovering all object masks in a given image and providing quality metrics, enabling efficient data labeling pipelines across medical, satellite, and consumer imagery without manual prompting.

What are the limitations of using zero-shot segmentation for multi-scale image processing?

Limitations include the need for compatible model checkpoints and specific dependencies, while multi-scale image processing requires careful handling of point, box, or mask prompts to maintain segmentation quality across diverse domains.