BuildFormer
A dual-path Vision Transformer that segments buildings in remote sensing images.
Segmentation · 654 operations Checked
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
- Task
- Segmentation
- Parameters
- 40.5M
- Operations
- 654
- Framework
- PyTorch
- Recurrent
- No
- Published
- IEEE Transactions on Geoscience and Remote Sensing 60 (2022)
- Cited by
- 254 (as of 28 October 2026)
- Authors
- Libo Wang, Shenghui Fang, Rui Li, Xiaoliang Meng
- License
- GPL-3.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m15004
- Graph hash
- ea3df9d2ab2ca2ff6d690dca4482bdbc2c08abfb4c43bdee1066eac0bf0fb909
- Skeleton hash
- 31b5d5b47b78e51fb70689163f1bfd66d04253f8c62848a272a604093f591ff4
- Architecture hash
- 38ae38ae4caa73673c9358c90c6896c0bdf8f97dd97b29efd401930c48fcef45
- Diagram SHA-256
- dce1a246a660064d66ac7b5e2dabce3c1db2b51d5d4199b6e4471e870eae137c
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
BuildFormer is a Vision Transformer for building extraction from remote sensing images. The paper's motivation is that CNN-based building extraction methods raised accuracy but are criticized for being unable to model global dependencies. It also names two limitations of the Vision Transformer, the first being that it requires more GPU memory and computation than CNNs. The second is that spatial details are not preserved well enough during feature extraction for fine-grained building segmentation.
BuildFormer answers both with a dual-path structure: a spatial-detailed context path encodes spatial details, and a global context path models global dependencies. Its window-based linear multi-head self-attention makes the complexity of attention linear in the window size, so the model can use large windows for global context.
The paper reports 75.74% IoU on the Massachusetts building dataset. The repository prepares three building datasets: WHU Aerial, Massachusetts and INRIA. The paper appeared in IEEE Transactions on Geoscience and Remote Sensing in 2022.
Key idea. BuildFormer pairs a spatial-detailed context path with a global context path and uses window-based linear self-attention so a Vision Transformer can segment buildings in large remote sensing images.
- BuildFormer
- building extraction
- building segmentation
- remote sensing segmentation
- vision transformer
- dual-path transformer
- window-based linear self-attention
- aerial imagery
- Massachusetts building dataset
- WHU building dataset
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{wang2022buildingextractionvisiontransformer,
title={Building extraction with vision transformer},
author={Libo Wang and Shenghui Fang and Rui Li and Xiaoliang Meng},
year={2022},
eprint={2111.15637},
archivePrefix={arXiv},
primaryClass={cs.CV},
doi={https://doi.org/10.1109/TGRS.2022.3186634},
url={https://arxiv.org/abs/2111.15637},
}