Skip to content
ai-supply.store
DiscoverCategoriesLeaderboardsCommunityAgent APIFAQ
Sign inSign up free
catalog / Vision & Image / Grounded SAM — Open-Vocabulary Detection + Segmentation
⬡PipelineVision & ImageFree

Grounded SAM — Open-Vocabulary Detection + Segmentation

Combines Grounding DINO and Segment Anything for text-prompt-driven object detection and precise segmentation in one pipeline.

@ai-supply
Installs196k
⟳ upstream main@126abe6 · updated 1y ago
↗ Source repository
← More Vision & ImageVision & Image leaderboard →How we grade security →Source ↗
✓ Grade A · 100/100 · SafeSecurity assessment
✓No compromise signals17capabilities surfaced9of 20 OWASP controls clear
External endpoints declaredSuspicious code patternsSuspicious code patternsExternal endpoints declared
scanned 17d ago·osv · gitleaks · opengrep · picklescan + heuristics·full breakdown in the Security tab ↓

Grounded Segment Anything

Grounded SAM marries Grounding DINO (open-vocabulary detection) with Segment Anything Model (SAM) to create a pipeline that can detect and precisely segment any object described in free-form text — no classes, no training.

Key Features

  • Text-prompt detection via Grounding DINO: "a cat", "all vehicles", "the red cup"
  • Pixel-perfect segmentation masks via SAM for each detected object
  • Extensions: Stable Diffusion inpainting, RAM++ auto-tagging, Recognize Anything
  • Grounded SAM 2 variant using SAM 2 for video object tracking+segmentation
  • REST API and Gradio demo included
  • Batch processing support for large image datasets

Quick Start

import groundingdino.datasets.transforms as T
from groundingdino.util.inference import load_model, predict
from segment_anything import sam_model_registry, SamPredictor

# 1) Detect with text prompt
model = load_model("groundingdino/config/GroundingDINO_SwinT.py", "weights/groundingdino_swint.pth")
boxes, logits, phrases = predict(model, image, caption="a cat", box_threshold=0.3, text_threshold=0.25)

# 2) Segment detected boxes
sampredictor = SamPredictor(sam_model_registry["vit_h"](checkpoint="weights/sam_vit_h.pth"))
sampredictor.set_image(image_np)
masks, _, _ = sampredictor.predict_torch(point_coords=None, point_labels=None, boxes=boxes)

Install via ai-supply

npx ai-supply add grounded-segment-anything-pipeline

Curated mirror of the open-source Grounded-Segment-Anything (Apache-2.0). Get it from the source.

Rating rank
#1
of 12 in Vision & Image
Install rank
#8
of 12 in Vision & Image
Security score
100/100 · A
safe
Security rank
#1
of 12 in Vision & Image
Installs
196k
cat avg 279k
This listing vs category average
Installs
this
cat avg
Security (of 100)
this
cat avg
Adoption trend
See the Vision & Image leaderboard →
✓ Security: Safe · 100100/100 · grade Ascanned 17d ago
✓ no compromise signals17 risk-surface · 6/20 OWASP controls flagged

Compromise signals — malicious or tampered code (leaked secrets, backdoors, a dropped executable) — reduce the score, and known dependency CVEs carry a bounded penalty (they warrant review but never QUARANTINE — update the dependency to clear). Other dangerous-by-capability traits are risk surface, expected for some capabilities. Every finding is mapped to its OWASP control below.

What this capability can do · med confidence (static)
⚑ filesystem⚑ shell⚑ network⚑ secrets
egress → arxiv.org, huggingface.co, yformer.github.io, www.mmlab-ntu.com, jameslahm.github.io, img.shields.io, badges.aleen42.com, youtu.be +32
3 stepsgithub.com

Findings mapped to the OWASP Top 10 for LLM Applications (2025) and the OWASP Machine Learning Security Top 10. Expand any flagged control for the exact findings — compromise reduces the score; expected/risk-surface do not, except a known CVE, which carries a small bounded penalty (high/critical → Review).

OWASP Top 10 for LLM Applications
⚠LLM05Improper Output Handlinghigh
Code that pipes model/user output into shell, eval, SQL or paths unsafely.
•Suspicious code patterns — destructive rm -rf / · IDEA-Research-Grounded-Segment-Anything-126abe6/Dockerfile (CWE-78)risk surface
•Suspicious code patterns — dynamic code execution · IDEA-Research-Grounded-Segment-Anything-126abe6/EfficientSAM/EdgeSAM/setup_edge_sam.py (CWE-95)risk surface
•Suspicious code patterns — OS command execution; dynamic code execution · IDEA-Research-Grounded-Segment-Anything-126abe6/GroundingDINO/demo/gradio_app.py (CWE-78)risk surface
•Suspicious code patterns — OS command execution; pickle deserialization · IDEA-Research-Grounded-Segment-Anything-126abe6/GroundingDINO/groundingdino/util/misc.py (CWE-78)risk surface
•Suspicious code patterns — pickle deserialization; unsafe yaml.load · IDEA-Research-Grounded-Segment-Anything-126abe6/GroundingDINO/groundingdino/util/slio.py (CWE-502)risk surface
•Suspicious code patterns — OS command execution · IDEA-Research-Grounded-Segment-Anything-126abe6/GroundingDINO/setup.py (CWE-78)risk surface
⚠LLM06Excessive Agencymedium
Over-broad tool/permission surface or unrestricted egress.
•External endpoints declared — 1 distinct host(s) · IDEA-Research-Grounded-Segment-Anything-126abe6/.gitmodulesrisk surface
•External endpoints declared — 6 distinct host(s) · IDEA-Research-Grounded-Segment-Anything-126abe6/EfficientSAM/README.mdrisk surface
•External endpoints declared — 8 distinct host(s) · IDEA-Research-Grounded-Segment-Anything-126abe6/GroundingDINO/README.mdrisk surface
•External endpoints declared — 2 distinct host(s) · IDEA-Research-Grounded-Segment-Anything-126abe6/GroundingDINO/groundingdino/models/GroundingDINO/backbone/swin_transformer.pyrisk surface
•Broad capability surface — 3 high-impact capability categories referenced — verify least-privilege · IDEA-Research-Grounded-Segment-Anything-126abe6/GroundingDINO/setup.py (CWE-272)risk surface
•External endpoints declared — 3 distinct host(s) · IDEA-Research-Grounded-Segment-Anything-126abe6/GroundingDINO/setup.pyrisk surface
•External endpoints declared — 31 distinct host(s) · IDEA-Research-Grounded-Segment-Anything-126abe6/README.mdrisk surface
•External endpoints declared — 13 distinct host(s) · IDEA-Research-Grounded-Segment-Anything-126abe6/segment_anything/README.mdrisk surface
•External endpoints declared — 4 distinct host(s) · IDEA-Research-Grounded-Segment-Anything-126abe6/segment_anything/notebooks/onnx_model_example.ipynbrisk surface
⚠LLM10Unbounded Consumptionmedium
Unbounded loops/recursion causing DoS or runaway cost.
Enforced at runtime by the gateway (rate limits + spend caps + size caps); static check flags unbounded loops.
•Potentially unbounded loop — an infinite loop (while True / while(1) / for(;;)) may cause runaway consumption · IDEA-Research-Grounded-Segment-Anything-126abe6/playground/ImageBind_SAM/models/multimodal_preprocessors.py (CWE-835)risk surface
⚠LLM03Supply Chainlow
Vulnerable/compromised dependencies, models or archives in the artifact.
•Dependency manifest — 10 pip requirements declared · IDEA-Research-Grounded-Segment-Anything-126abe6/GroundingDINO/requirements.txtrisk surface
•Dependency manifest — 23 pip requirements declared · IDEA-Research-Grounded-Segment-Anything-126abe6/requirements.txtrisk surface
§LLM09MisinformationGovernance
Artifacts designed to produce false/deceptive output.
Detectable only by runtime behavioral evaluation; addressed via responsible-use attestation.
✓LLM01Prompt InjectionPassed
✓LLM02Sensitive Information DisclosurePassed
✓LLM04Data and Model PoisoningPassed
Backdoors/poisoning in training data or serialized models.
Behavioral poisoning needs model execution; static check covers unsafe serialization + dataset skew only.
✓LLM07System Prompt LeakagePassed
✓LLM08Vector and Embedding WeaknessesPassed
PII or plaintext source leakage in embedding/vector exports.
Embedding inversion/poisoning is largely runtime; static check covers PII in vector exports.
OWASP Machine Learning Security Top 10
⚠ML09Output Integrityhigh
Middleware tampering with model outputs in transit.
Gateway enforces TLS + response integrity; static check flags output-rewriting code.
•Suspicious code patterns — destructive rm -rf / · IDEA-Research-Grounded-Segment-Anything-126abe6/Dockerfile (CWE-78)risk surface
•Suspicious code patterns — dynamic code execution · IDEA-Research-Grounded-Segment-Anything-126abe6/EfficientSAM/EdgeSAM/setup_edge_sam.py (CWE-95)risk surface
•Suspicious code patterns — OS command execution; dynamic code execution · IDEA-Research-Grounded-Segment-Anything-126abe6/GroundingDINO/demo/gradio_app.py (CWE-78)risk surface
•Suspicious code patterns — OS command execution; pickle deserialization · IDEA-Research-Grounded-Segment-Anything-126abe6/GroundingDINO/groundingdino/util/misc.py (CWE-78)risk surface
•Suspicious code patterns — pickle deserialization; unsafe yaml.load · IDEA-Research-Grounded-Segment-Anything-126abe6/GroundingDINO/groundingdino/util/slio.py (CWE-502)risk surface
•Suspicious code patterns — OS command execution · IDEA-Research-Grounded-Segment-Anything-126abe6/GroundingDINO/setup.py (CWE-78)risk surface
⚠ML06AI Supply Chainlow
Compromised PyPI/npm packages, typosquats, unsafe serialized models.
•Dependency manifest — 10 pip requirements declared · IDEA-Research-Grounded-Segment-Anything-126abe6/GroundingDINO/requirements.txtrisk surface
•Dependency manifest — 23 pip requirements declared · IDEA-Research-Grounded-Segment-Anything-126abe6/requirements.txtrisk surface
§ML01Input Manipulation (Adversarial)Governance
Models vulnerable to adversarial perturbations.
Requires runtime robustness evaluation; addressed via publisher robustness attestation.
§ML03Model InversionGovernance
Training data reconstructable from a model's outputs.
Runtime/evaluation property; addressed via model-card data-provenance + DP attestation.
§ML04Membership InferenceGovernance
Determining whether a record was in the training set.
Runtime/evaluation property; addressed via overfitting disclosure + DP attestation.
§ML08Model SkewingGovernance
Models trained on skewed data producing biased output.
Requires fairness evaluation; addressed via model-card bias/limitations disclosure.
✓ML02Data PoisoningPassed
Poisoned training datasets with triggers or anomalous distributions.
Static check covers trigger phrasing, PII and label skew; full poisoning detection is runtime.
✓ML05Model TheftPassed
Unlicensed re-distribution / license-incompatible derivatives.
Static check verifies license declaration; extraction throttling is runtime.
✓ML07Transfer Learning AttackPassed
Backdoored base models / LoRA adapters propagating to derivatives.
Backdoor detection needs behavioral probing; static check covers unsafe serialization + provenance.
✓ML10Model Poisoning (Weights)Passed
Tampered model weight files; integrity must be verifiable.
Static check enforces safe formats + records a content hash for downstream verification.
Other findings (11) · hygiene / uncategorized
•Unrecognized file type — '.gitignore' is not on the allowlist · IDEA-Research-Grounded-Segment-Anything-126abe6/.gitignorerisk surface
•Unrecognized file type — '.gitmodules' is not on the allowlist · IDEA-Research-Grounded-Segment-Anything-126abe6/.gitmodulesrisk surface
•Unrecognized file type — '.cff' is not on the allowlist · IDEA-Research-Grounded-Segment-Anything-126abe6/CITATION.cffrisk surface
•Unrecognized file type — '.?' is not on the allowlist · IDEA-Research-Grounded-Segment-Anything-126abe6/Dockerfilerisk surface
•Unrecognized file type — '.h' is not on the allowlist · IDEA-Research-Grounded-Segment-Anything-126abe6/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn.hrisk surface
•Unrecognized file type — '.cpp' is not on the allowlist · IDEA-Research-Grounded-Segment-Anything-126abe6/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.cpprisk surface
•Unrecognized file type — '.cu' is not on the allowlist · IDEA-Research-Grounded-Segment-Anything-126abe6/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.curisk surface
•Unrecognized file type — '.cuh' is not on the allowlist · IDEA-Research-Grounded-Segment-Anything-126abe6/GroundingDINO/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuhrisk surface
•Suspicious network references — suspicious TLD (210 URLs) · IDEA-Research-Grounded-Segment-Anything-126abe6/README.mdrisk surface
•Unrecognized file type — '.flake8' is not on the allowlist · IDEA-Research-Grounded-Segment-Anything-126abe6/segment_anything/.flake8risk surface
•Unrecognized file type — '.cfg' is not on the allowlist · IDEA-Research-Grounded-Segment-Anything-126abe6/segment_anything/setup.cfgrisk surface
✔ verified source · pinned IDEA-Research-Grounded-Segment-Anything-126abe6
Check against a policy

The same gate an agent runs before installing (POST /api/v1/trust/grounded-segment-anything-pipeline/check). Click a policy:

Consume Grounded SAM — Open-Vocabulary Detection + Segmentation programmatically. Authenticate with an API key or session — see Authorize an agent.

# Agents: CHECK BEFORE YOU INSTALL (no auth) — score, grade, level, capability manifest
curl https://ai-supply.store/api/v1/trust/grounded-segment-anything-pipeline

# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/grounded-segment-anything-pipeline/check \
  -H "Content-Type: application/json" \
  -d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'

# CLI
npx ai-supply add grounded-segment-anything-pipeline

# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/grounded-segment-anything-pipeline/install \
  -H "Authorization: Bearer $AIM_KEY"

# MCP tool
install_listing({ "slug": "grounded-segment-anything-pipeline" })
OpenAPI spec →
vlatest
✓ Security: Safe · 1001mo ago

Curated mirror — latest upstream source. See the repository for tagged releases.

Sign in and install this listing to leave a review.

More from @ai-supply

View profile →
◉Agent
MetaGPT
Multi-agent framework that assigns GPT roles (PM, engineer, QA) to solve complex software tasks end-to-end.
↓ 1.0M
⇄Connector
vLLM
High-throughput, memory-efficient LLM inference engine with PagedAttention and continuous batching.
↓ 892k
⇄Connector
Meilisearch
Lightning-fast open-source search engine with typo-tolerance, semantic hybrid search, and sub-50ms response times.
↓ 811k
△Eval
Weights & Biases (wandb)
ML experiment tracking and visualization — log metrics, hyperparameters, models, and media in real time.
↓ 784k
ai-supply.store

Free, security-vetted AI capabilities — skills, MCPs, plugins, agents, datasets and more, each graded and freshness-tracked, and built for humans and agents alike.

api · v3.1status · all green
Contact
support@ai-supply.storesecurity@ai-supply.store
Catalog
  • Discover
  • Categories
  • Leaderboards
  • Benchmarks
  • Security
  • Scan a repo
Community
  • Community
  • FAQ
For agents
  • Quickstart (60s)
  • Authorize an agent
  • Agent API
  • OpenAPI spec
For builders
  • Publish
  • Dashboard
Account
  • Create account
  • Sign in
  • Settings
Legal
  • Terms
  • Publisher Agreement
  • Acceptable Use
  • Privacy