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 Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2401.14159")

Code

Syntology Ran 13 of 15 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 1 ran · honoured contract; 2 ran · our draft was wrong; 2 ran · fixture could not drive it; 8 ran with no contract checked.

By repository: community (archive-listed): 15 samples from 1 repository, 13 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

IDEA-Research/Grounded-Segment-Anything officialmentioned in papermentioned on GitHubpytorch report
haiv-lab/ospcoop_imagenet-bg mentioned on GitHubpytorch report
idea-research/grounded-sam-2 mentioned on GitHubpytorch report
idea-research/groundingdino mentioned on GitHubpytorchApache-2.0 report
syscv/sam-hq pytorchApache-2.0 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.

Code Syntology ran Syntology

15 samples harvested; 13 ran; 1 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
2ran · our draft was wrong
2ran · fixture could not drive it
8ran
2unverified

Licence: 0 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. 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. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (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 from a repository marked official are listed first. 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 four 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; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). 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.

convert_to_xywh idea-research/groundingdino/groundingdino/datasets/cocogrounding_eval.py community (archive-listed) ran · honoured contract fingerprinted Apache-2.0 (permissive) · f31a58bf6457ced5 · report
crop idea-research/groundingdino/groundingdino/datasets/transforms.py community (archive-listed) ran Apache-2.0 (permissive) · 5012a0e0d69e1a96 · report
evaluate idea-research/groundingdino/groundingdino/datasets/cocogrounding_eval.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · fe0ddcc2d420c9a0 · report
func_attention idea-research/groundingdino/groundingdino/models/GroundingDINO/fuse_modules.py community (archive-listed) ran Apache-2.0 (permissive) · b749226a635f2b59 · report
gen_encoder_output_proposals idea-research/groundingdino/groundingdino/models/GroundingDINO/utils.py community (archive-listed) ran Apache-2.0 (permissive) · 0afe797420c1a312 · report
generate_masks_with_special_tokens idea-research/groundingdino/groundingdino/models/GroundingDINO/bertwarper.py community (archive-listed) ran Apache-2.0 (permissive) · 2015623fec3ac3bc · report
generate_masks_with_special_tokens_and_transfer_map idea-research/groundingdino/groundingdino/models/GroundingDINO/bertwarper.py community (archive-listed) ran · fixture could not drive it Apache-2.0 (permissive) · 10c7b3ef85aca8d6 · report
get_sine_pos_embed idea-research/groundingdino/groundingdino/models/GroundingDINO/utils.py community (archive-listed) ran Apache-2.0 (permissive) · 888d746fcc2165d1 · report
hflip idea-research/groundingdino/groundingdino/datasets/transforms.py community (archive-listed) ran Apache-2.0 (permissive) · 9be9e658b5bd688a · report
l1norm idea-research/groundingdino/groundingdino/models/GroundingDINO/fuse_modules.py community (archive-listed) ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · b943467457f9825d · report
l2norm idea-research/groundingdino/groundingdino/models/GroundingDINO/fuse_modules.py community (archive-listed) ran fingerprinted Apache-2.0 (permissive) · 48cff1d6632b7025 · report
multi_scale_deformable_attn_pytorch idea-research/groundingdino/groundingdino/models/GroundingDINO/ms_deform_attn.py community (archive-listed) ran · fixture could not drive it Apache-2.0 (permissive) · be924e54ed79731b · report
sigmoid_focal_loss idea-research/groundingdino/groundingdino/models/GroundingDINO/utils.py community (archive-listed) ran Apache-2.0 (permissive) · 23eb1c50e6bb2ba5 · report
create_dummy_class idea-research/groundingdino/groundingdino/models/GroundingDINO/ms_deform_attn.py community (archive-listed) unverified Apache-2.0 (permissive) · 47b44963c80f19d1 · report
create_dummy_func idea-research/groundingdino/groundingdino/models/GroundingDINO/ms_deform_attn.py community (archive-listed) unverified Apache-2.0 (permissive) · 5f2ed565ef0da8fc · report

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