segment-anything-model

Segment images with point, box, or mask prompts using SAM.

2|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/john-data-chen/hermes-agent-backup --skill segment-anything-model-john-data-chen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: segment-anything-model
Source: https://github.com/john-data-chen/hermes-agent-backup/tree/main/skills/mlops/models/segment-anything
Command: npx skills add https://github.com/john-data-chen/hermes-agent-backup --skill segment-anything-model-john-data-chen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Segment images using zero-shot prompts with the Segment Anything Model (SAM).

Core Features & Use Cases

  • Zero-shot segmentation: Segment any object without task-specific training.
  • Prompt-based flexibility: Use points, boxes, or previous masks to guide segmentation.
  • Multi-variant models & deployment: Access ViT-B/L/H variants and ONNX export for deployment.
  • Use Case: Build annotation tools, medical or satellite imagery pipelines, or data-labeling workflows.

Quick Start

Install the segment-anything package and load a pretrained model, then start generating masks with point or box prompts.

Frequently Asked Questions about segment-anything-model

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

FAQPage Schema
How do I segment objects in images without task-specific training?

Zero-shot image segmentation allows segmenting any object without task-specific training. The Segment Anything Model uses point, box, or previous-mask prompts to guide quick mask generation across medical, satellite, or data-labeling workflows.

What types of prompts can I use for image segmentation?

For image segmentation, you can use point, box, or previous-mask prompts to guide the mask generation. The model also supports automatic mask generation to segment objects across images without manually providing prompts.

Can I export the segmentation model to ONNX for deployment?

Yes, you can export the segmentation model to ONNX for deployment. The Skill supports ONNX export alongside multiple model variants like ViT-B, ViT-L, and ViT-H to fit various deployment environments and batched workflows.

Does zero-shot segmentation work for medical and satellite imagery?

Zero-shot segmentation works for medical and satellite imagery. It applies to annotation tools and data-labeling workflows, allowing quick object segmentation in specialized imagery without requiring any model re-training.

How do I handle batched or multi-image segmentation workflows?

To handle batched or multi-image segmentation workflows, the Skill supports processing multiple images efficiently. You can load a pretrained model variant and apply automatic mask generation or prompt-based segmentation across your batch.