segment-anything-model

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enables precise segmentation of any object within an image without requiring task-specific training, revolutionizing image annotation and analysis.

Core Features & Use Cases

  • Zero-Shot Segmentation: Segment objects based on prompts like points, boxes, or masks.
  • Automatic Mask Generation: Automatically identify and mask all objects in an image.
  • Use Case: Quickly create masks for objects in a photograph for use in image editing software, or generate training data for other computer vision models by segmenting all items in a scene.

Quick Start

Use the segment-anything-model skill to segment the object at coordinates (500, 375) in the image 'image.jpg'.

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 on an object?

Zero-shot image segmentation extracts object masks without task-specific training by accepting flexible prompts like points, boxes, or masks to identify objects. Foundation models like Meta AI's Segment Anything Model process these prompts to generate precise masks for any object in an image.

Can I automatically generate masks for all objects in an image?

Automatic mask generation identifies and masks all objects in an image without manual prompting. This process scans the entire image to extract every distinct object, outputting segmentation masks suitable for automated data generation pipelines or scene analysis.

How do I segment an object in an image using coordinate points?

Segmenting an object using coordinate points involves passing specific x and y pixel locations to the model as a prompt. The model processes these coordinates to output a precise mask around the targeted object at those specified image locations.

Does zero-shot image segmentation require training data for new objects?

Zero-shot image segmentation does not require training data for new objects. It leverages foundation models to interpret prompts like boxes or points, generalizing to unseen items without task-specific retraining or custom dataset annotation.

What's the best way to generate training data for computer vision models?

Generating training data for computer vision models is best achieved by using automatic mask generation to segment all items in a scene. This produces large datasets of precisely masked objects, accelerating annotation pipelines for downstream vision tasks.

Can I use ONNX runtime for zero-shot image segmentation pipelines?

ONNX runtime supports zero-shot image segmentation pipelines by executing exported model formats efficiently. Using ONNX allows flexible integration of foundation models into diverse environments for automated object detection and mask generation workflows.