Use this skill when you need to build a billion-scale segmentation mask dataset using a model-in-the-loop interactive annotation approach. Avoid it when you need text-grounded segmentation rather than prompt-based mask generation.
Skill metadata
Skill type: interactive-annotation-at-scale
Paper kind: operational-method
Actionability: high
Evidence quality: full_paper
Goal
Build SA-1B, a dataset of 1.1 billion segmentation masks on 11 million images, using a model-in-the-loop data annotation engine where the SAM model assists human annotators and eventually generates masks automatically.
Problem signature
Modality: images with segmentation masks generated through model-assisted annotation.
Diverse prompts (points, boxes, masks) enable comprehensive segmentation.
Procedure
Phase 1: Manual annotation with SAM
Action: Human annotators create masks with SAM's interactive segmentation.
Why: Bootstraps initial training data and validates the tool.
Note: See paper for details.
Phase 2: Model-assisted annotation
Action: SAM proposes masks that annotators refine.
Why: Increases annotation speed 6x while maintaining quality.
Note: See paper for details.
Phase 3: Fully automatic annotation
Action: SAM generates masks automatically with a grid of point prompts.
Why: Scales to billions of masks without human involvement.
Note: See paper for details.
Train SAM iteratively
Action: Retrain SAM on accumulated annotations between phases.
Why: Progressive training improves mask quality.
Note: See paper for details.
Release SA-1B dataset
Action: Package and release the 1.1B mask dataset.
Why: Enables downstream research and applications.
Note: See paper for details.
Parameters to set
prompt_grid_density — Role: Density of automatic point prompts. How to set: 32x32 grid per image for comprehensive coverage. Default/range: 32x32. Effect: Denser grids find more objects but increase compute.
mask_quality_threshold — Role: Minimum predicted IoU for keeping a mask. How to set: Filter low-confidence masks. Default/range: Model-dependent. Effect: Higher threshold keeps fewer but better masks.
nms_threshold — Role: Non-maximum suppression overlap threshold. How to set: Standard NMS settings. Default/range: 0.7. Effect: Controls overlap between final masks.
Validation checks
Mask quality should be comparable to manually annotated datasets.
Coverage should include diverse object types beyond standard categories.
The dataset should enable strong zero-shot segmentation.
Failure modes
Automatic masks may miss small or occluded objects.
Over-segmentation may produce too many fragmented masks.
Class-agnostic masks lack semantic labels.
Adaptation notes for VLM training
SA-1B masks are widely used for VLM training data augmentation.
Combine SAM masks with VLM-generated captions for grounded data.
Use SAM as an annotation tool for constructing region-level VLM data.
Implementation notes
Use the SAM model in ONNX format for efficient inference.
Process images in batches for the automatic phase.
Store masks in the efficient RLE format.
Evidence from the paper
SA-1B contains 1.1 billion masks on 11M images, 400x larger than any existing segmentation dataset.
Model-in-the-loop annotation achieves 6x speedup in the assisted phase.
SAM achieves strong zero-shot segmentation across diverse image types.
The dataset and model have become foundational tools for computer vision.
1---2name: segment-anything-arxiv-2304-02643v13description: Segment Anything4---5# Segment Anything67## One-line decision8Use this skill when you need to build a billion-scale segmentation mask dataset using a model-in-the-loop interactive annotation approach. Avoid it when you need text-grounded segmentation rather than prompt-based mask generation.910## Skill metadata11- **Skill type**: interactive-annotation-at-scale12- **Paper kind**: operational-method13- **Actionability**: high14- **Evidence quality**: full_paper1516## Goal17Build SA-1B, a dataset of 1.1 billion segmentation masks on 11 million images, using a model-in-the-loop data annotation engine where the SAM model assists human annotators and eventually generates masks automatically.1819## Problem signature20- Modality: images with segmentation masks generated through model-assisted annotation.21- Data state: progressively annotated: manual → model-assisted → fully automatic mask generation.22- Scale regime: 1.1 billion masks on 11 million images.23- Model requirement: SAM (ViT-H) promptable segmentation model.2425## Use when26- You need a large-scale segmentation dataset for pretraining.27- You want to use model-in-the-loop annotation to scale data collection.28- You need masks for diverse objects beyond standard detection categories.2930## Do not use when31- You need text-grounded or semantic segmentation with class labels.32- You only need a few thousand annotated images.33- You need 3D or temporal segmentation.3435## Required inputs36- **licensed_images**: 11M diverse, high-resolution images.37- **annotation_tool**: Interactive annotation tool with SAM model assistance.38- **sam_model**: Progressively trained SAM model for mask generation.3940## Optional inputs41- **quality_review**: Human review of automatically generated masks.4243## Outputs44- **sa_1b_dataset**: 1.1 billion segmentation masks on 11M images.45- **sam_model**: Trained promptable segmentation model.4647## Assumptions and prerequisites48- Model-in-the-loop annotation can scale to billions of masks.49- Progressive automation (manual → assisted → automatic) maintains quality while increasing speed.50- Diverse prompts (points, boxes, masks) enable comprehensive segmentation.5152## Procedure531. **Phase 1: Manual annotation with SAM**54 Action: Human annotators create masks with SAM's interactive segmentation.55 Why: Bootstraps initial training data and validates the tool.56 Note: See paper for details.572. **Phase 2: Model-assisted annotation**58 Action: SAM proposes masks that annotators refine.59 Why: Increases annotation speed 6x while maintaining quality.60 Note: See paper for details.613. **Phase 3: Fully automatic annotation**62 Action: SAM generates masks automatically with a grid of point prompts.63 Why: Scales to billions of masks without human involvement.64 Note: See paper for details.654. **Train SAM iteratively**66 Action: Retrain SAM on accumulated annotations between phases.67 Why: Progressive training improves mask quality.68 Note: See paper for details.695. **Release SA-1B dataset**70 Action: Package and release the 1.1B mask dataset.71 Why: Enables downstream research and applications.72 Note: See paper for details.7374## Parameters to set75- **prompt_grid_density** — Role: Density of automatic point prompts. How to set: 32x32 grid per image for comprehensive coverage. Default/range: 32x32. Effect: Denser grids find more objects but increase compute.76- **mask_quality_threshold** — Role: Minimum predicted IoU for keeping a mask. How to set: Filter low-confidence masks. Default/range: Model-dependent. Effect: Higher threshold keeps fewer but better masks.77- **nms_threshold** — Role: Non-maximum suppression overlap threshold. How to set: Standard NMS settings. Default/range: 0.7. Effect: Controls overlap between final masks.7879## Validation checks80- Mask quality should be comparable to manually annotated datasets.81- Coverage should include diverse object types beyond standard categories.82- The dataset should enable strong zero-shot segmentation.8384## Failure modes85- Automatic masks may miss small or occluded objects.86- Over-segmentation may produce too many fragmented masks.87- Class-agnostic masks lack semantic labels.8889## Adaptation notes for VLM training90- SA-1B masks are widely used for VLM training data augmentation.91- Combine SAM masks with VLM-generated captions for grounded data.92- Use SAM as an annotation tool for constructing region-level VLM data.9394## Implementation notes95- Use the SAM model in ONNX format for efficient inference.96- Process images in batches for the automatic phase.97- Store masks in the efficient RLE format.9899## Evidence from the paper100- SA-1B contains 1.1 billion masks on 11M images, 400x larger than any existing segmentation dataset.101- Model-in-the-loop annotation achieves 6x speedup in the assisted phase.102- SAM achieves strong zero-shot segmentation across diverse image types.103- The dataset and model have become foundational tools for computer vision.104105## Source paper106- **Title**: Segment Anything107- **Year**: 2023108- **Venue**: ICCV109- **Paper ID**: arxiv-2304.02643v1110- **URL**: http://arxiv.org/abs/2304.02643v1111- **arXiv ID**: 2304.02643v1
Run npx skillmds@latest add jiachen-t-wang/segment-anything-arxiv-2304-02643v1 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Segment Anything It is listed under Coding & Dev Tools on SkillMD.
SkillMD's automated safety review verdict for this skill is PASS. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. Capability flags: makes network calls. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Jiachen-T-Wang (@jiachen-t-wang) published this skill. Their other Agent Skills are listed on their SkillMD profile.