Pix2Poly
A transformer that predicts building footprint polygons as vertex token sequences with learned connectivity.
Segmentation · 1,692 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
- 31.9M
- Operations
- 1,692
- Framework
- PyTorch
- Recurrent
- No
- Published
- WACV 2025
- Cited by
- 4 (as of 28 October 2026)
- Authors
- Yeshwanth Kumar Adimoolam, Charalambos Poullis, Melinos Averkiou
- Source
- GitHub: yeshwanth95/Pix2Poly
- License
- MIT
- 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
- m19343
- Graph hash
- 1238dfb79ee54279e96c9b9c0a2fad7fa7d141f730700e1a678930c6519b2d75
- Skeleton hash
- 6075d58d6b20120ae47c86f562bfb08da632f5a6b00230f5591709a962f60de4
- Architecture hash
- 2f4fd7bb0ec80aba964990b9703e88e8f46f10256c9e72839a24c4c6212e3e82
- Diagram SHA-256
- f732e580c2b54116d6e487a8d4a24afa689ddbf076ea8d49860099a5299c6088
- 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
Pix2Poly extracts building footprints from remote sensing imagery directly as explicit polygons, in what the paper calls a ring graph format. It treats the job as sequence prediction: an encoder-decoder transformer produces a sequence of vertex tokens, and an optimal matching network learns how those vertices connect.
Following the Pix2Seq approach, the vertex sequence detector handles the detection of building corners as a discrete sequence prediction task. The connectivity between the corners is represented as a binary permutation matrix.
The backbone is the small variant of the vision transformer, ViT, with a patch size of 8. The decoder is a transformer with 6 layers and 8 heads per layer. During training the permutation matrix is computed from the matching network's raw logits with 100 Sinkhorn iterations, and at inference the exact assignment comes from the Hungarian algorithm. The authors present the method as end-to-end trainable without the raster loss functions of earlier graph learning methods, and apply it to road networks as well as buildings.
Key idea. The paper introduces an end-to-end trainable network that generates building footprint polygons as a vertex token sequence whose connections are learned by an optimal matching network.
- Pix2Poly
- building footprint extraction
- polygonal building extraction
- remote sensing
- aerial imagery
- polygon prediction
- vertex sequence
- road network extraction
- building polygons
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{adimoolam2024pix2polysequencepredictionmethod,
title={Pix2Poly: A Sequence Prediction Method for End-to-end Polygonal Building Footprint Extraction from Remote Sensing Imagery},
author={Yeshwanth Kumar Adimoolam and Charalambos Poullis and Melinos Averkiou},
year={2024},
eprint={2412.07899},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2412.07899},
}