All models

ClassWise-SAM-Adapter

Segment Anything adapted with adapters and a classwise mask decoder for landcover segmentation of SAR images.

Segmentation · 1,226 operations Structure only

Structure-only capture: TorchLens recorded this graph without running real numbers through the model, so shapes and data types on the diagram are hypotheses, not measurements.

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (14 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
105M
Operations
1,226
Framework
PyTorch
Recurrent
No
Published
IEEE JSTARS 2025
Cited by
82 (as of 26 October 2026)
Authors
Xinyang Pu, Hecheng Jia, Linghao Zheng and others
Checked
Structure only: shapes and data types are hypotheses, not measurements.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m15310
Graph hash
806e5293cf9eee02079b2ae2c8275e66bfdf54554d3cb68b7112a3f82dbe11b4
Skeleton hash
675681f1501afa10e0e3c491ef02fdbdd878927fa254c0e2f7c82aea30938ef0
Architecture hash
f8c1fe75a8a22095457b454e179f866906a481641a0ebfd0782896509e298a10
Diagram SHA-256
b974d0f0f07017cae1b7b56a2e27d430e8ca11a6f364b49a5e20714123255ce9
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3

What it is

This model is set up for the five landcover types of FUSAR-Map1.0: building, vegetation, water, road and background.

ClassWise-SAM-Adapter (CWSAM) adapts the Segment Anything Model (SAM) to landcover classification on space-borne Synthetic Aperture Radar (SAR) images. It keeps most of SAM's Vision Transformer image encoder frozen and inserts a small number of trainable parameters through adapters. In each Transformer block, one adapter follows the attention layer and a second runs in parallel with SAM's original MLP layer.

SAM's mask decoder only produces binary masks, so CWSAM adds a classwise light-weighted convolution module that generates a mask for every category. A parallel task-specific input module injects low-frequency information of the SAR image through MLP-based layers. That information is extracted with a 2D Fast Fourier Transform, a low-pass filter and an inverse Fast Fourier Transform.

The paper evaluates CWSAM on two SAR landcover datasets, FUSAR-Map1.0 and FUSAR-Map2.0. Compared with conventional semantic segmentation algorithms, the paper reports better performance with fewer computing resources. Training starts from the pre-trained SAM checkpoint, which the README asks users to download and place in ./pretrained.

Key idea. CWSAM adapts SAM to SAR landcover segmentation by freezing most of its parameters, adding lightweight adapters and designing a classwise mask decoder.

  • classwise-sam-adapter
  • cwsam
  • sar image segmentation
  • synthetic aperture radar
  • landcover classification
  • semantic segmentation
  • parameter efficient fine-tuning
  • adapter tuning
  • remote sensing
  • fusar-map

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{pu2024classwisesamadapterparameterefficientfinetuning,
      title={ClassWise-SAM-Adapter: Parameter Efficient Fine-tuning Adapts Segment Anything to SAR Domain for Semantic Segmentation}, 
      author={Xinyang Pu and Hecheng Jia and Linghao Zheng and Feng Wang and Feng Xu},
      year={2024},
      eprint={2401.02326},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2401.02326}, 
}