segment-anything-model

Generate object masks from point or box prompts using Segment Anything Model.

31|3|Updated May 7, 2026
One-click install
npx skills add https://github.com/markwang2658/hermes-windows-native --skill segment-anything-model-markwang2658
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: segment-anything-model
Source: https://github.com/markwang2658/hermes-windows-native/tree/main/hermes-agent/skills/mlops/models/segment-anything
Command: npx skills add https://github.com/markwang2658/hermes-windows-native --skill segment-anything-model-markwang2658

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Segment Anything Model (SAM) enables zero-shot segmentation by generating masks for objects in images with minimal prompts, accelerating annotation and data preparation workflows.

Core Features & Use Cases

  • Zero-shot segmentation with prompts such as points, boxes, or masks.
  • Flexible model variants (ViT-B/L/H) and checkpoints for balance of speed and accuracy.
  • Interoperable with Python workflows, batch processing, and ONNX deployment for scalable pipelines.
  • Use cases include interactive annotation, dataset curation, medical or satellite image analysis, and automated object extraction for downstream tasks.

Quick Start

Load an image, initialize the SAM model, and generate masks using a point or box prompt.

Frequently Asked Questions about segment-anything-model

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

FAQPage Schema
How do I generate object masks from images using point or box prompts?

Generate object masks by applying the Segment Anything Model (SAM) to images using point or box prompts. This zero-shot image segmentation automates mask generation without requiring model fine-tuning.

What is zero-shot image segmentation and when do I need it for dataset labeling?

Zero-shot image segmentation generates masks for objects with minimal prompts, accelerating dataset labeling. You need it to automate data preparation workflows without training custom segmentation models.

Do I need Python and PyTorch to run SAM for automated image annotation?

Yes, you need Python, PyTorch, transformers, and the segment-anything library to run SAM. You also need SAM checkpoints (vit-b, vit-l, or vit-h) to initialize the model for image annotation.

Can I use SAM for medical or satellite imagery analysis on Windows and macOS?

Yes, SAM supports medical and satellite imagery analysis on Linux, macOS, and Windows. It generates rapid masks from points or boxes for interactive object extraction in these specialized images.

What's the best way to balance speed and accuracy for mask generation workflows?

Balance speed and accuracy for mask generation by selecting among SAM's flexible model variants: ViT-B, ViT-L, or ViT-H. Smaller checkpoints process faster while larger ones yield higher accuracy.

Does SAM support ONNX deployment for scalable batch processing pipelines?

Yes, SAM supports ONNX deployment for scalable batch processing pipelines. This interoperability allows automated mask generation to integrate efficiently within larger Python workflows.