segment-anything-model

Generate binary segmentation masks from point and bounding box prompts.

Updated May 5, 2026
One-click install
npx skills add https://github.com/Z43L/zeus-agent --skill segment-anything-model-z43l
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: segment-anything-model
Source: https://github.com/Z43L/zeus-agent/tree/main/skills/mlops/models/segment-anything
Command: npx skills add https://github.com/Z43L/zeus-agent --skill segment-anything-model-z43l

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires segment-anything, transformers>=4.30.0, torch>=1.7.0, and includes references (resource) components.

What problem does it solve?

This Skill helps you automatically create accurate image masks by letting you describe what to segment using points, boxes, or previous masks—without requiring task-specific training.

Core Features & Use Cases

  • Zero-shot image segmentation: Generate object masks on diverse image domains without fine-tuning.
  • Interactive prompting: Use point prompts (foreground/background), bounding boxes, or combined prompts to refine results.
  • Automatic mask generation: Produce many candidate masks for downstream selection, filtering, or dataset creation.
  • Deployment options: Export to ONNX for faster inference workflows.
  • Use cases: Interactive annotation tools, object extraction, building training-data pipelines, and applying masks to medical/satellite imagery.

Quick Start

Use the segment-anything-model skill to segment an object by clicking a foreground point on an input image and selecting the best returned 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 generate image masks from points and bounding boxes without training?

Zero-shot image segmentation uses prompt-based inputs like points and bounding boxes to generate binary masks without task-specific training. You provide prompts on an input image, and the model predicts the best object mask from the returned candidates.

What is zero-shot segmentation and how does prompting work with SAM?

Zero-shot segmentation creates object masks on diverse image domains without fine-tuning. Prompting works by using foreground and background points or bounding boxes to condition the model, which then refines and predicts accurate binary masks.

Can I use SAM for automatic mask generation on medical or satellite imagery?

Yes, SAM applies zero-shot segmentation to medical or satellite imagery. It can automatically produce many candidate masks for downstream selection, filtering, or dataset creation without requiring domain-specific fine-tuning.

Does segment-anything-model support ONNX export for deployment?

Yes, segment-anything-model supports ONNX deployment compatibility. You can export the model to ONNX to achieve faster inference workflows in production environments while retaining prompt-conditioned mask prediction capabilities.

Do I need PyTorch and Transformers to run prompt-based image segmentation?

Yes, you need PyTorch (1.7.0 or higher) and Transformers (4.30.0 or higher) along with the segment-anything dependency. These libraries provide the underlying neural network and model loading capabilities required for inference.