Papers › SAMAug: Point Prompt Augmentation for Segment Anything Model

SAMAug: Point Prompt Augmentation for Segment Anything Model

3 Jul 2023arXiv:2307.01187archive 2025-07-28

Haixing Dai, Chong Ma, Zhiling Yan, Zhengliang Liu, Enze Shi, Yiwei Li, Peng Shu, Xiaozheng Wei, Lin Zhao, Zihao Wu, Fang Zeng, Dajiang Zhu, Wei Liu, Quanzheng Li, Lichao Sun, Shu Zhang Tianming Liu, Xiang Li

This paper introduces SAMAug, a novel visual point augmentation method for the Segment Anything Model (SAM) that enhances interactive image segmentation performance. SAMAug generates augmented point prompts to provide more information about the user's intention to SAM. Starting with an initial point prompt, SAM produces an initial mask, which is then fed into our proposed SAMAug to generate augmented point prompts. By incorporating these extra points, SAM can generate augmented segmentation masks based on both the augmented point prompts and the initial prompt, resulting in improved segmentation performance. We conducted evaluations using four different point augmentation strategies: random sampling, sampling based on maximum difference entropy, maximum distance, and saliency. Experiment results on the COCO, Fundus, COVID QUEx, and ISIC2018 datasets show that SAMAug can boost SAM's segmentation results, especially using the maximum distance and saliency. SAMAug demonstrates the potential of visual prompt augmentation for computer vision. Codes of SAMAug are available at github.com/yhydhx/SAMAug

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="2307.01187")

Code

Syntology Ran 2 of 11 code samples harvested from 1 repository linked to this paper; 9 have no recorded run. Of those that ran: 2 ran · fixture could not drive it.

By repository: official repository: 11 samples from 1 repository, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

yhydhx/samaug officialmentioned in papermentioned on GitHubpytorchApache-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

11 samples harvested; 2 ran; 0 honoured the contract we drafted; 9 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.

2ran · fixture could not drive it
9unverified

Licence: 0 of the 11 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 yhydhx/samaug. “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.

get_rel_pos yhydhx/samaug/segment_anything/modeling/image_encoder.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · 733d7f0bedcb74c2 · report
window_partition yhydhx/samaug/segment_anything/modeling/image_encoder.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 105fa08885dc36cc · report
build_sam_vit_b yhydhx/samaug/segment_anything/build_sam.py official repository unverified Apache-2.0 (permissive) · f9bc5f31ce61cee8 · report
build_sam_vit_h yhydhx/samaug/segment_anything/build_sam.py official repository unverified Apache-2.0 (permissive) · 6b77c1f11fff3ed6 · report
build_sam_vit_l yhydhx/samaug/segment_anything/build_sam.py official repository unverified Apache-2.0 (permissive) · 3f8890e695469246 · report
calculate_image_entroph yhydhx/samaug/SAMAug.py official repository unverified Apache-2.0 (permissive) · fd47442047312406 · report
get_random_point yhydhx/samaug/SAMAug.py official repository unverified Apache-2.0 (permissive) · d97019795bf3ec1e · report
image_entropy yhydhx/samaug/SAMAug.py official repository unverified Apache-2.0 (permissive) · 20c28c7b4bbbf8c9 · report
swap_xy yhydhx/samaug/gen_aug_points.py official repository unverified Apache-2.0 (permissive) · bf63cfaa00e3d42c · report
swap_xy2 yhydhx/samaug/gen_aug_points.py official repository unverified Apache-2.0 (permissive) · 51ab3f1c36e46203 · report
window_unpartition yhydhx/samaug/segment_anything/modeling/image_encoder.py official repository unverified Apache-2.0 (permissive) · 27be441cc8213e52 · report

Tasks

Image SegmentationPrompt EngineeringSegmentationSemantic Segmentationmodel

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SAM

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