community-segment-anything-model
Foundation model for image segmentation with zero-shot transfer.
Skill by ArgentAIOS
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/argentaios-community-segment-anything-model
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/community-segment-anything-model
What's inside
- Skill name
community-segment-anything-model- Description
- Foundation model for image segmentation with zero-shot transfer. Use when you need to segment any object in images using points, boxes, or masks as prompts, or automatically generate all object masks in an image.
- License
- MIT
- Instructions
- 499 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Agent Skills spec issues
- name: "community-segment-anything-model" does not match folder "segment-anything"
Files (3)
- SKILL.md
- advanced-usage.md · references/
- troubleshooting.md · references/
SKILL.md (first lines)
# Segment Anything Model (SAM)
Comprehensive guide to using Meta AI's Segment Anything Model for zero-shot image segmentation.
## When to use SAM
**Use SAM when:**
- Need to segment any object in images without task-specific training
- Building interactive annotation tools with point/box prompts
- Generating training data for other vision models
- Need zero-shot transfer to new image domains
- Building object detection/segmentation pipelines
- Processing medical, satellite, or domain-specific images
**Key features:**
- **Zero-shot segmentation**: Works on any image domain without fine-tuning
- **Flexible prompts**: Points, bounding boxes, or previous masks
- **Automatic segmentation**: Generate all object masks automatically
- **High quality**: Trained on 1.1 billion masks from 11 million images
- **Multiple model sizes**: ViT-B (fastest), ViT-L, ViT-H (most accurate)
- **ONNX export**: Deploy in browsers and edge devices
**Use alternatives instead:**
- **YOLO/Detectron2**: For real-time object detection with classes
- **Mask2Former**: For semantic/panoptic segmentation with categories
- **GroundingDINO + SAM**: For text-prompted segmentation
- **SAM 2**: For video segmentation tasks
## Quick start
### Installation
```bash
# From GitHub
pip install git+https://github.com/facebookresearch/segment-anything.git
# Optional dependencies
pip install opencv-python pycocotools matplotlib
# Or use HuggingFace transformers
pip install transformers
```
### Download checkpoints
```bash
# ViT-H (largest, most accurate) - 2.4GB
wget https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth
# ViT-L (medium) - 1.2GB
wget https://dl.fbaipublicfiles.com/segment_anything/sam_vit_l_0b3195.pth
# ViT-B (smallest, fastest) - 375MB
wget https://dl.fbaipublicfiles.com/segment_anything/sam_vit_b_01ec64.pth
```
### Basic usage with SamPredictor
```python
import numpy as np
from segment_anything import sam_model_registry, SamPredictor
# Load model
sam = sam_model_registry["vit_h"](checkpoint="sam_vit_h_4b8939.pth")
sam.to(device="cuda")
# Create predictor
predictor = SamPredictor(sam)
# Set image (computes embeddings once)
image = cv2.imread("image.jpg")
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
predictor.set_image(image)
# Predict with point prompts
input_point = np.array([[500, 375]]) # (x, y) coordinates
input_label = np.array([1]) # 1 = foreground, 0 = background
masks, scores, logits = predictor.predict(
point_coords=input_point,
point_labels=input_label,
multimask_output=True # Returns 3 mask options
)
# Select best mask
best_mask = masks[np.argmax(scores)]
```
### HuggingFace Transformers
```python
import torch
from PIL import Image
from transformers import SamModel, SamProcessor
# Load model and processor
model = SamModel.from_pretrained("facebook/sam-vit-huge")
processor = SamProcessor.from_pretrained("facebook/sam-vit-huge")
model.to("cuda")
# Process image with point prompt
image = Image.open("image.jpg")
input_points = [[[450, 600]]] # Batch of points
inputs = processor(image, input_points=input_points, return_tensors="pt")
inputs = {k: v.to("cuda") for k, v in inputs.items()}
# Generate masks
with torch.no_grad():
outputs = model(**inputs)
# Post-process masks to original size
masks = processor.image_processor.post_process_masks(
outputs.pred_masks.cpu(),
inputs["original_sizes"].cpu(),
inputs["reshaped_input_sizes"].cpu()From ArgentAIOS/argentos-core, MIT.
More from ArgentAIOS/argentos-core
- 0.528score
argentos-baoyu-comic
ArgentAIOS
Knowledge comic creator supporting multiple art styles and tones.
SkillCFreshness: C★ 127Claude Code +9 - 0.528score
argentos-baoyu-infographic
ArgentAIOS
Generate professional infographics with 21 layout types and 21 visual styles.
SkillCFreshness: C★ 127Claude Code +9 - 0.528score
community-serving-llms-vllm
ArgentAIOS
Serves LLMs with high throughput using vLLM's PagedAttention and continuous batching.
SkillCFreshness: C★ 127Claude Code +9 - 0.528score
community-godmode
ArgentAIOS
Jailbreak API-served LLMs using G0DM0D3 techniques — Parseltongue input obfuscation (33 techniques), GODMODE CLASSIC system prompt templates, ULTRAPLINIAN…
SkillCFreshness: C★ 127Claude Code +9 - 0.528score
community-maps
ArgentAIOS
Location intelligence — geocode a place, reverse-geocode coordinates, find nearby places (46 POI categories), driving/walking/cycling distance + time…
SkillCFreshness: C★ 127Claude Code +9 - 0.528score
community-fine-tuning-with-trl
ArgentAIOS
Fine-tune LLMs using reinforcement learning with TRL - SFT for instruction tuning, DPO for preference alignment, PPO/GRPO for reward optimization, and reward…
SkillCFreshness: C★ 127Claude Code +9 - 0.528score
community-obliteratus
ArgentAIOS
Remove refusal behaviors from open-weight LLMs using OBLITERATUS — mechanistic interpretability techniques (diff-in-means, SVD, whitened SVD, LEACE, SAE…
SkillCFreshness: C★ 127Claude Code +9 - 0.528score
argentos-fine-tuning-with-trl
ArgentAIOS
Fine-tune LLMs using reinforcement learning with TRL - SFT for instruction tuning, DPO for preference alignment, PPO/GRPO for reward optimization, and reward…
SkillCFreshness: C★ 127Claude Code +9 - 0.528score
community-ideation
ArgentAIOS
Generate project ideas through creative constraints.
SkillCFreshness: C★ 127Claude Code +9 - 0.528score
community-baoyu-infographic
ArgentAIOS
Generate professional infographics with 21 layout types and 21 visual styles.
SkillCFreshness: C★ 127Claude Code +9 - 0.528score
community-baoyu-comic
ArgentAIOS
Knowledge comic creator supporting multiple art styles and tones.
SkillCFreshness: C★ 127Claude Code +9 - 0.528score
argentos-ideation
ArgentAIOS
Generate project ideas through creative constraints.
SkillCFreshness: C★ 127Claude Code +9
Signals
- Stars
- 127
- Forks
- 23
- Open issues
- 25
- Last commit (this folder)
- Apr 27, 2026 (6 months ago)
- Last release
- Jul 9, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/ArgentAIOS/argentos-core
- Website
- argentos.ai
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from ArgentAIOS
- 0.528score
community-ideation
ArgentAIOS
Generate project ideas through creative constraints.
SkillCFreshness: C★ 127Claude Code +9 - 0.528score
community-obliteratus
ArgentAIOS
Remove refusal behaviors from open-weight LLMs using OBLITERATUS — mechanistic interpretability techniques (diff-in-means, SVD, whitened SVD, LEACE, SAE…
SkillCFreshness: C★ 127Claude Code +9 - 0.528score
community-baoyu-infographic
ArgentAIOS
Generate professional infographics with 21 layout types and 21 visual styles.
SkillCFreshness: C★ 127Claude Code +9 - 0.528score
argentos-fine-tuning-with-trl
ArgentAIOS
Fine-tune LLMs using reinforcement learning with TRL - SFT for instruction tuning, DPO for preference alignment, PPO/GRPO for reward optimization, and reward…
SkillCFreshness: C★ 127Claude Code +9 - 0.528score
community-baoyu-comic
ArgentAIOS
Knowledge comic creator supporting multiple art styles and tones.
SkillCFreshness: C★ 127Claude Code +9 - 0.528score
community-serving-llms-vllm
ArgentAIOS
Serves LLMs with high throughput using vLLM's PagedAttention and continuous batching.
SkillCFreshness: C★ 127Claude Code +9
Cite this page
community-segment-anything-model skill. Agent Mart. https://agentmart.dev/skills/argentaios-community-segment-anything-model (last updated 2026-10-24)