segment-anything-model

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

1|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/tianhao909/AI-Research-SKILLs-cn --skill segment-anything-model-tianhao909
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: segment-anything-model
Source: https://github.com/tianhao909/AI-Research-SKILLs-cn/tree/main/18-multimodal/segment-anything
Command: npx skills add https://github.com/tianhao909/AI-Research-SKILLs-cn --skill segment-anything-model-tianhao909

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires segment-anything, transformers, torch, opencv-python, pycocotools, matplotlib, onnxruntime, onnx, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill enables precise segmentation of any object within an image without requiring task-specific training, making image annotation and object identification highly efficient.

Core Features & Use Cases

  • Zero-Shot Segmentation: Segment objects in any image domain without prior training.
  • Flexible Prompting: Utilize points, bounding boxes, or masks to guide segmentation.
  • Automatic Mask Generation: Generate all possible object masks within an image automatically.
  • Use Case: Automatically segment all the individual fruits in a photograph of a fruit basket for inventory or analysis.

Quick Start

Use the segment-anything-model skill to segment objects in the image 'photo.jpg' using a single point prompt at coordinates (500, 375).

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 an image using points or boxes?

Zero-shot image segmentation uses flexible prompting via points, bounding boxes, or masks to define and segment arbitrary objects within digital images without requiring task-specific training.

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

Zero-shot image segmentation identifies and segments objects in any image domain without prior training, making it highly efficient for interactive annotation and automated data generation.

Can I automatically generate all possible object masks within an image?

Automatic mask generation performs zero-shot image segmentation to detect and output all possible object masks within a given image automatically without manual prompts.

Does zero-shot image segmentation work for object detection pipelines?

Zero-shot image segmentation applies to object detection pipelines and interactive annotation tools, utilizing PyTorch and ONNX runtime to process arbitrary objects without prior training.

Do I need to train a model before segmenting objects in a new image domain?

Zero-shot image segmentation eliminates the need for task-specific training, allowing you to segment arbitrary objects in any image domain using flexible prompting immediately.