Papers › MAS-SAM: Segment Any Marine Animal with Aggregated Features

MAS-SAM: Segment Any Marine Animal with Aggregated Features

24 Apr 2024arXiv:2404.15700archive 2025-07-28

Tianyu Yan, Zifu Wan, Xinhao Deng, Pingping Zhang, Yang Liu, Huchuan Lu

Recently, Segment Anything Model (SAM) shows exceptional performance in generating high-quality object masks and achieving zero-shot image segmentation. However, as a versatile vision model, SAM is primarily trained with large-scale natural light images. In underwater scenes, it exhibits substantial performance degradation due to the light scattering and absorption. Meanwhile, the simplicity of the SAM's decoder might lead to the loss of fine-grained object details. To address the above issues, we propose a novel feature learning framework named MAS-SAM for marine animal segmentation, which involves integrating effective adapters into the SAM's encoder and constructing a pyramidal decoder. More specifically, we first build a new SAM's encoder with effective adapters for underwater scenes. Then, we introduce a Hypermap Extraction Module (HEM) to generate multi-scale features for a comprehensive guidance. Finally, we propose a Progressive Prediction Decoder (PPD) to aggregate the multi-scale features and predict the final segmentation results. When grafting with the Fusion Attention Module (FAM), our method enables to extract richer marine information from global contextual cues to fine-grained local details. Extensive experiments on four public MAS datasets demonstrate that our MAS-SAM can obtain better results than other typical segmentation methods. The source code is available at https://github.com/Drchip61/MAS-SAM.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

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

Code

Syntology Ran 12 of 20 code samples harvested from 1 repository linked to this paper; 8 have no recorded run. Of those that ran: 3 ran · fixture could not drive it; 9 ran with no contract checked.

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

drchip61/mas-sam officialmentioned in paperpytorch 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

20 samples harvested; 12 ran; 0 honoured the contract we drafted; 8 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

3ran · fixture could not drive it
9ran
8unverified

Licence: 20 of the 20 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 Drchip61/MAS-SAM. “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.

Attention Drchip61/MAS-SAM/MAS-SAM/sam_lora_image_encoder.py official repository ran · metamorphic tier: invariant no licence file found · pointer only · 83f765aaff985605 · report
Conv Drchip61/MAS-SAM/MAS-SAM/sam_lora_image_encoder.py official repository ran · metamorphic tier: invariant fingerprinted no licence file found · pointer only · aa1d3f6eb56aac2f · report
PatchEmbed Drchip61/MAS-SAM/MAS-SAM/sam_lora_image_encoder.py official repository ran · metamorphic tier: invariant fingerprinted no licence file found · pointer only · f6ebdaee467a4c18 · report
adapter Drchip61/MAS-SAM/MAS-SAM/sam_lora_image_encoder.py official repository ran · metamorphic tier: invariant fingerprinted no licence file found · pointer only · 2037cd696c266c0f · report
add_decomposed_rel_pos Drchip61/MAS-SAM/MAS-SAM/sam_lora_image_encoder.py official repository ran · fixture could not drive it no licence file found · pointer only · 96bad2ef96fb6579 · report
conv_block Drchip61/MAS-SAM/MAS-SAM/sam_lora_image_encoder.py official repository ran no licence file found · pointer only · 761a072ba4760197 · report
conv_pre Drchip61/MAS-SAM/MAS-SAM/sam_lora_image_encoder.py official repository ran · metamorphic tier: invariant fingerprinted no licence file found · pointer only · b4db11d8cc855157 · report
conv_up Drchip61/MAS-SAM/MAS-SAM/sam_lora_image_encoder.py official repository ran · metamorphic tier: invariant fingerprinted no licence file found · pointer only · fdd08851abe071e1 · report
conv_up0 Drchip61/MAS-SAM/MAS-SAM/sam_lora_image_encoder.py official repository ran · metamorphic tier: invariant fingerprinted no licence file found · pointer only · 713df064f3abc1f7 · report
conv_up_pre Drchip61/MAS-SAM/MAS-SAM/sam_lora_image_encoder.py official repository ran · metamorphic tier: invariant fingerprinted no licence file found · pointer only · 423b042d669b0385 · report
window_partition Drchip61/MAS-SAM/MAS-SAM/sam_lora_image_encoder.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · 44295279053c2920 · report
window_unpartition Drchip61/MAS-SAM/MAS-SAM/sam_lora_image_encoder.py official repository ran · fixture could not drive it no licence file found · pointer only · 23bd2b62a8e69216 · report
Block Drchip61/MAS-SAM/MAS-SAM/sam_lora_image_encoder.py official repository unverified no licence file found · pointer only · 8f4c88e2ba7c6212 · report
ImageEncoderViT Drchip61/MAS-SAM/MAS-SAM/sam_lora_image_encoder.py official repository unverified no licence file found · pointer only · e2097ccdbb403497 · report
LoRA_Sam Drchip61/MAS-SAM/MAS-SAM/sam_lora_image_encoder.py official repository unverified no licence file found · pointer only · fde7b569a116a3f3 · report
MaskDecoder Drchip61/MAS-SAM/MAS-SAM/sam_lora_image_encoder.py official repository unverified no licence file found · pointer only · 7ee7d142292d4557 · report
Sam Drchip61/MAS-SAM/MAS-SAM/sam_lora_image_encoder.py official repository unverified no licence file found · pointer only · 2682fdd5e82c677b · report
_LoRA_qkv Drchip61/MAS-SAM/MAS-SAM/sam_lora_image_encoder.py official repository unverified no licence file found · pointer only · 844f9d4dc11c493a · report
desam Drchip61/MAS-SAM/MAS-SAM/sam_lora_image_encoder.py official repository unverified no licence file found · pointer only · 04bf9641e259bf2e · report
senet Drchip61/MAS-SAM/MAS-SAM/sam_lora_image_encoder.py official repository unverified no licence file found · pointer only · 40e7d23cd911982a · report

Tasks

DecoderImage SegmentationMarine Animal SegmentationSegmentationSemantic Segmentation

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Segmentation MAS3K MAS-SAM E-measure 0.938 #2 of 4 Archive leaderboard report
Image Segmentation MAS3K MAS-SAM MAE 0.025 #2 of 4 Archive leaderboard report
Image Segmentation MAS3K MAS-SAM S-measure 0.887 #2 of 4 Archive leaderboard report
Image Segmentation MAS3K MAS-SAM mIoU 0.788 #2 of 4 Archive leaderboard report
Image Segmentation RMAS MAS-SAM E-measure 0.948 #1 of 4 Archive leaderboard report
Image Segmentation RMAS MAS-SAM MAE 0.021 #1 of 4 Archive leaderboard report
Image Segmentation RMAS MAS-SAM S-measure 0.865 #1 of 4 Archive leaderboard report
Image Segmentation RMAS MAS-SAM mIoU 0.742 #1 of 4 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

MASSAM

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