segment-anything-model

Segment objects in images via points, boxes, or automatic mask generation.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/DoanNgocCuong/continuous-training-pipeline_T3_2026 --skill segment-anything-model-doanngoccuong
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: segment-anything-model
Source: https://github.com/DoanNgocCuong/continuous-training-pipeline_T3_2026/tree/main/.claude/skills/segment-anything
Command: npx skills add https://github.com/DoanNgocCuong/continuous-training-pipeline_T3_2026 --skill segment-anything-model-doanngoccuong

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 image segmentation for any object without requiring task-specific training, making it versatile for various computer vision tasks.

Core Features & Use Cases

  • Zero-Shot Segmentation: Segment objects in images using points, boxes, or masks as prompts.
  • Automatic Mask Generation: Automatically identify and mask all objects within an image.
  • Use Case: Quickly create masks for objects in product photos for an e-commerce platform, or segment specific regions in medical scans for analysis.

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 without training a model?

Zero-shot image segmentation is achieved using Meta AI's Segment Anything Model (SAM). It allows you to segment any object in images through interactive prompts like points and bounding boxes, or via automatic mask generation, without requiring task-specific training.

Can I use points or bounding boxes as prompts to segment specific regions in an image?

Yes, you can use points and bounding boxes as interactive prompts to segment specific regions in an image. The Segment Anything Model (SAM) facilitates precise object identification and masking based on these coordinate inputs.

Does the Segment Anything Model support ONNX export for deployment?

Yes, the Segment Anything Model (SAM) supports ONNX export for deployment. This allows you to transition the zero-shot image segmentation capabilities from PyTorch into the ONNX runtime environment for optimized inference.

What is the best way to automatically identify and mask all objects within an image?

The best way to automatically identify and mask all objects within an image is using the automatic mask generation feature of the Segment Anything Model (SAM). It provides zero-shot segmentation to detect and mask every object present.

Which model variants are available for zero-shot object detection and masking?

The available model variants for zero-shot object detection and masking are ViT-B, ViT-L, and ViT-H. These Segment Anything Model (SAM) architectures provide different scales of processing power for image segmentation tasks.