Papers › Grounded SAM: Assembling Open-World Models for Diverse Visual Tasks

Grounded SAM: Assembling Open-World Models for Diverse Visual Tasks

25 Jan 2024arXiv:2401.14159archive 2025-07-28

Tianhe Ren, Shilong Liu, Ailing Zeng, Jing Lin, Kunchang Li, He Cao, Jiayu Chen, Xinyu Huang, Yukang Chen, Feng Yan, Zhaoyang Zeng, Hao Zhang, Feng Li, Jie Yang, Hongyang Li, Qing Jiang, Lei Zhang

We introduce Grounded SAM, which uses Grounding DINO as an open-set object detector to combine with the segment anything model (SAM). This integration enables the detection and segmentation of any regions based on arbitrary text inputs and opens a door to connecting various vision models. As shown in Fig.1, a wide range of vision tasks can be achieved by using the versatile Grounded SAM pipeline. For example, an automatic annotation pipeline based solely on input images can be realized by incorporating models such as BLIP and Recognize Anything. Additionally, incorporating Stable-Diffusion allows for controllable image editing, while the integration of OSX facilitates promptable 3D human motion analysis. Grounded SAM also shows superior performance on open-vocabulary benchmarks, achieving 48.7 mean AP on SegInW (Segmentation in the wild) zero-shot benchmark with the combination of Grounding DINO-Base and SAM-Huge models.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

No sample from the archive's official repository (IDEA-Research/Grounded-Segment-Anything) is linked to this paper; the 15 samples below come from 1 community repository. Syntology harvested code from IDEA-Research/Grounded-Segment-Anything for 2 other papers.

IDEA-Research/Grounded-Segment-Anything: Syntology's graph links these samples to Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detection (arXiv:2303.05499; that paper's own run record: 2 ran (of which 2 constructed an object rather than computing a result; 2 with no instrument failure: 0 honoured, 0 violated, 2 with no contract checked; 0 where Syntology's instrument failed) · 3 unverified; every one of the 2 samples that ran constructed an object rather than computing a result) and Segment Anything (arXiv:2304.02643; that paper's own run record: 20 ran (of which 0 constructed an object rather than computing a result; 14 with no instrument failure: 1 honoured, 2 violated, 11 with no contract checked; 6 where Syntology's instrument failed) · 3 unverified); nothing checks that they implement this paper's method.

Syntology 15 code samples harvested from 1 repository linked to this paper: 15 ran (of which 0 constructed an object rather than computing a result; 7 with no instrument failure: 1 honoured, 0 violated, 6 with no contract checked; 8 where Syntology's instrument failed) · 0 unverified. Where Syntology's instrument failed: 6 where our contract draft was wrong; 2 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: community (archive-listed): 15 samples from 1 repository, 15 ran (7 with no instrument failure; 8 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

No sample is linked to this paper from 3 of its repositories that Syntology harvested for other papers:

Levels written between 2026-09-22 and 2026-09-25 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

IDEA-Research/Grounded-Segment-Anything officialmentioned in papermentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detection (arXiv:2303.05499; that paper's own run record: 2 ran (of which 2 constructed an object rather than computing a result; 2 with no instrument failure: 0 honoured, 0 violated, 2 with no contract checked; 0 where Syntology's instrument failed) · 3 unverified; every one of the 2 samples that ran constructed an object rather than computing a result) and Segment Anything (arXiv:2304.02643; that paper's own run record: 20 ran (of which 0 constructed an object rather than computing a result; 14 with no instrument failure: 1 honoured, 2 violated, 11 with no contract checked; 6 where Syntology's instrument failed) · 3 unverified); nothing checks that they implement this paper's method. report
haiv-lab/ospcoop_imagenet-bg mentioned on GitHubpytorchSyntology: not harvested report
idea-research/grounded-sam-2 mentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to SAM 2: Segment Anything in Images and Videos (arXiv:2408.00714; that paper's own run record: 40 ran (of which 9 constructed an object rather than computing a result; 29 with no instrument failure: 2 honoured, 0 violated, 27 with no contract checked; 11 where Syntology's instrument failed) · 9 unverified); nothing checks that they implement this paper's method. report
idea-research/groundingdino mentioned on GitHubpytorchApache-2.0Syntology: 15 samples, 15 ran (8 instrument-failed) · 0 unverified report
syscv/sam-hq pytorchApache-2.0Syntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Segment Anything in High Quality (arXiv:2306.01567; that paper's own run record: 3 ran (of which 0 constructed an object rather than computing a result; 2 with no instrument failure: 1 honoured, 1 violated, 0 with no contract checked; 1 where Syntology's instrument failed) · 14 unverified); nothing checks that they implement this paper's method. report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

A paper named beside a repository with no sample linked to this paper is shown with that paper's own run record, not this paper's: “ran” means executed on a synthesized input, not that the code is correct, and “where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Papers are listed in arXiv-id order, at most three per repository.

Code Syntology ran Syntology

15 samples harvested: 15 ran (of which 0 constructed an object rather than computing a result; 7 with no instrument failure: 1 honoured, 0 violated, 6 with no contract checked; 8 where Syntology's instrument failed) · 0 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

1ran · honoured contract
6ran · our draft was wrong
2ran; the contract check could not run
6ran

Licence: 5 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. For 5 of them, this paper's copy is under a permissive licence and cleared, but the stored copy of the same code that Syntology serves is not; the licence label's tooltip gives Syntology's recorded reason. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from idea-research/groundingdino. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

idea-research/groundingdino community (archive-listed) 15 samples, 15 ran (8 instrument-failed) · 0 unverified
convert_to_xywh in 26 papers groundingdino/datasets/cocogrounding_eval.py ran · honoured contract fingerprinted Apache-2.0 (permissive) here; the stored copy is pointer only · f31a58bf6457ced5 · report fixture: signature boxes:Tensor/2/float · returned Tensor · level recorded 2026-09-22
create_dummy_class in 7 papers groundingdino/models/GroundingDINO/ms_deform_attn.py ran Apache-2.0 (permissive) · 47b44963c80f19d1 · report fixture: returned _DummyMetaClass · level recorded 2026-09-25
create_dummy_func in 6 papers groundingdino/models/GroundingDINO/ms_deform_attn.py ran Apache-2.0 (permissive) · 5f2ed565ef0da8fc · report fixture: signature func:str/0/str, dependency:str/0/str, message:str/0/str · returned function · level recorded 2026-09-25
crop in 99 papers
census: 5 implementations from 5 papers, 4 distinct outputs across 4 buckets, one shared input per bucket
groundingdino/datasets/transforms.py ran Apache-2.0 (permissive) · 5012a0e0d69e1a96 · report fixture: signature image:Image/0/?, target:dict/0/?, region:tuple/1/int · returned tuple · level recorded 2026-09-24
evaluate in 514 papers groundingdino/datasets/cocogrounding_eval.py ran · our draft was wrong Apache-2.0 (permissive) here; the stored copy is pointer only · fe0ddcc2d420c9a0 · report fixture: signature self:MockCOCOEval/0/? · returned tuple · level recorded 2026-09-22
func_attention in 7 papers groundingdino/models/GroundingDINO/fuse_modules.py ran · our draft was wrong Apache-2.0 (permissive) · b749226a635f2b59 · report fixture: signature query:Tensor/3/float, context:Tensor/3/float, smooth:int/0/int, raw_feature_norm:str/0/str, eps:float/0/float · returned tuple · level recorded 2026-09-24
gen_encoder_output_proposals in 10 papers groundingdino/models/GroundingDINO/utils.py ran Apache-2.0 (permissive) · 0afe797420c1a312 · report fixture: signature memory:Tensor/3/float, memory_padding_mask:Tensor/2/bool, spatial_shapes:Tensor/2/int, learnedwh:Tensor/1/float · returned tuple · level recorded 2026-09-24
generate_masks_with_special_tokens groundingdino/models/GroundingDINO/bertwarper.py ran Apache-2.0 (permissive) · 2015623fec3ac3bc · report fixture: signature tokenized:dict/0/?, special_tokens_list:list/1/int, tokenizer:MinimalTokenizer/0/? · returned tuple · level recorded 2026-09-24
generate_masks_with_special_tokens_and_transfer_map groundingdino/models/GroundingDINO/bertwarper.py ran; the contract check could not run (RAISES) · metamorphic tier: deterministic Apache-2.0 (permissive) here; the stored copy is pointer only · 10c7b3ef85aca8d6 · report fixture: signature tokenized:dict/0/?, special_tokens_list:list/1/int, tokenizer:MockTokenizer/0/? · returned tuple · level recorded 2026-09-22
get_sine_pos_embed groundingdino/models/GroundingDINO/utils.py ran · our draft was wrong Apache-2.0 (permissive) · 888d746fcc2165d1 · report fixture: signature pos_tensor:Tensor/3/float, num_pos_feats:int/0/int, temperature:int/0/int, exchange_xy:bool/0/bool · returned Tensor · level recorded 2026-09-24
hflip in 29 papers groundingdino/datasets/transforms.py ran · our draft was wrong Apache-2.0 (permissive) here; the stored copy is pointer only · 9be9e658b5bd688a · report fixture: signature image:Image/0/?, target:dict/0/? · returned tuple · level recorded 2026-09-24
l1norm in 14 papers
census: 7 implementations from 7 papers, 2 distinct outputs on one shared input this sample: bucket 1 of 1, arg 1: rank 2, kind float, dtype float32
groundingdino/models/GroundingDINO/fuse_modules.py ran · our draft was wrong fingerprinted Apache-2.0 (permissive) here; the stored copy is pointer only · b943467457f9825d · report fixture: signature X:Tensor/2/float, dim:int/0/int, eps:float/0/float · returned Tensor · level recorded 2026-09-22
l2norm in 84 papers
census: 12 implementations from 20 papers, 3 distinct outputs on one shared input
groundingdino/models/GroundingDINO/fuse_modules.py ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 48cff1d6632b7025 · report fixture: signature X:Tensor/2/float, dim:int/0/int, eps:float/0/float · returned Tensor · level recorded 2026-09-24
multi_scale_deformable_attn_pytorch in 7 papers groundingdino/models/GroundingDINO/ms_deform_attn.py ran; the contract check could not run (RAISES) Apache-2.0 (permissive) · be924e54ed79731b · report fixture: signature value:Tensor/4/float, value_spatial_shapes:Tensor/2/int, sampling_locations:Tensor/6/float, attention_weights:Tensor/5/float · returned Tensor · level recorded 2026-09-22
sigmoid_focal_loss in 122 papers
census: 3 implementations from 9 papers, 2 distinct outputs across 2 buckets, one shared input per bucket
groundingdino/models/GroundingDINO/utils.py ran Apache-2.0 (permissive) · 23eb1c50e6bb2ba5 · report fixture: signature inputs:Tensor/2/float, targets:Tensor/2/float, num_boxes:int/0/int, alpha:float/0/float, gamma:float/0/float, no_reduction:bool/0/bool · returned Tensor · level recorded 2026-09-24

Tasks

Segmentation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AttentionBLIPDINODense ConnectionsLayer NormalizationLinear LayerMulti-Head AttentionResidual ConnectionSAMSoftmaxVision Transformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections