segment-anything-model

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires segment-anything, transformers, torch, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables the segmentation of any object in images with no need for task-specific training, significantly reducing the complexity and time required for image segmentation tasks.

Core Features & Use Cases

  • Zero-shot Segmentation: Segment objects in images without fine-tuning.
  • Flexible Prompts: Supports point, bounding box, or previous mask prompts.
  • Automatic Segmentation: Automatically generates all object masks.
  • High Quality: Trained on 1.1 billion masks from 11 million images.
  • Multiple Model Sizes: Offers fast and accurate segmentation with various model sizes.
  • ONNX Export: Deployable on browsers and edge devices.
  • Use Case: For applications like object detection, segmentation pipelines, and processing medical or satellite images.

Quick Start

Use the segment-anything-model skill to segment an object in the image 'example.jpg' by clicking on it.

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 without fine-tuning on custom images?

Zero-shot image segmentation without fine-tuning is achievable using this Skill to automatically segment objects across any image domain, leveraging models trained on 1.1 billion masks. It requires no task-specific training, directly generating object masks.

What types of prompts can I use for object detection and segmentation pipelines?

For object detection and segmentation pipelines, you can use flexible prompts including points, bounding boxes, or previous masks to guide the segmentation process. This allows precise targeting of objects within your images.

Does zero-shot segmentation work for processing medical and satellite images?

Yes, zero-shot segmentation works for processing medical and satellite images. The Skill performs domain-agnostic segmentation without fine-tuning, making it applicable to specialized image processing tasks like medical analysis and satellite imagery.

Do I need PyTorch and Transformers to run automatic mask generation?

Yes, you need PyTorch and Transformers to run automatic mask generation, as the Skill requires the segment-anything, transformers, and torch dependencies for executing segmentation and generating image embeddings.

Can I export segmented models to deploy on edge devices and browsers?

Yes, you can export segmented models to deploy on browsers and edge devices using the ONNX export feature. This allows the generated segmentation masks to be utilized in lightweight deployment environments.