segment-anything-model

Segment objects in images using point, box, or mask prompts.

1|1|Updated Apr 26, 2026
One-click install
npx skills add https://github.com/BermudaLocals/hermes-agent-lite --skill segment-anything-model-bermudalocals
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: segment-anything-model
Source: https://github.com/BermudaLocals/hermes-agent-lite/tree/main/skills/mlops/models/segment-anything
Command: npx skills add https://github.com/BermudaLocals/hermes-agent-lite --skill segment-anything-model-bermudalocals

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Segment Anything Model (SAM) provides zero-shot image segmentation, enabling you to identify and extract arbitrary objects in images without task-specific training.

Core Features & Use Cases

  • Zero-shot segmentation across diverse image domains.
  • Flexible prompts: points, boxes, or masks to guide segmentation.
  • Automatic mask generation for object discovery and dataset creation.
  • Multiple model sizes (ViT-H/L/B) with deployment options including ONNX.
  • Broad use cases: annotation tools, medical and satellite imagery, and interactive segmentation workflows.

Quick Start

Install the required libraries and run a quick sample to load SAM and generate a mask.

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 without task-specific training?

Zero-shot image segmentation extracts arbitrary objects from images without task-specific training. You can use the Segment Anything Model to identify and isolate objects across diverse image domains by providing prompts like points or boxes.

Can I guide image segmentation using points or bounding boxes?

Yes, interactive image segmentation supports flexible prompts including points, boxes, and masks. You provide these prompts to guide the model, allowing precise object extraction and annotation within your image processing workflows.

Do I need PyTorch to run the Segment Anything Model for automatic mask generation?

Yes, you need Python and PyTorch to run the Segment Anything Model for automatic mask generation. These libraries provide the necessary environment to load SAM variants and process images for object discovery.

What is the best way to create datasets for computer vision using automatic mask generation?

Automatic mask generation identifies and extracts objects across an image without manual intervention. It is highly effective for object discovery and dataset creation, enabling you to build large annotated datasets for computer vision tasks.

Does the Segment Anything Model support ONNX deployment?

Yes, the Segment Anything Model supports ONNX deployment options. This allows you to export and run multiple SAM model sizes, including ViT-H, ViT-L, and ViT-B, in optimized environments.

Can I use zero-shot segmentation for medical and satellite imagery?

Zero-shot segmentation applies directly to medical and satellite imagery. The model identifies arbitrary objects across these diverse image domains without requiring specialized training data for each specific imagery type.