Pix2Poly: A Sequence Prediction Method for End-to-end Polygonal Building Footprint Extraction from Remote Sensing Imagery
Yeshwanth Kumar Adimoolam, Charalambos Poullis, Melinos Averkiou
TL;DR
Pix2Poly tackles end-to-end extraction of polygonal building footprints from aerial imagery by predicting vertex sequences and learning vertex connectivity to form ring graphs. It introduces a two-module architecture: a Vertex Sequence Detector (transformer encoder-decoder) for corner sequences and an Optimal Matching Network (Sinkhorn-based) for connectivity, enabling differentiable, end-to-end training without rasterization losses. Across several challenging datasets (INRIA, SpaceNet, WHU, Massachusetts Roads, SpaceNet 2), Pix2Poly achieves state-of-the-art polygon quality metrics and demonstrates strong road-network extraction with lower model complexity (~31.9M parameters) and fast inference (~18 ms per image). The approach simplifies the training pipeline by avoiding post-processing polygonization and non-differentiable NMS, and is readily applicable to both building footprints and road graphs.
Abstract
Extraction of building footprint polygons from remotely sensed data is essential for several urban understanding tasks such as reconstruction, navigation, and mapping. Despite significant progress in the area, extracting accurate polygonal building footprints remains an open problem. In this paper, we introduce Pix2Poly, an attention-based end-to-end trainable and differentiable deep neural network capable of directly generating explicit high-quality building footprints in a ring graph format. Pix2Poly employs a generative encoder-decoder transformer to produce a sequence of graph vertex tokens whose connectivity information is learned by an optimal matching network. Compared to previous graph learning methods, ours is a truly end-to-end trainable approach that extracts high-quality building footprints and road networks without requiring complicated, computationally intensive raster loss functions and intricate training pipelines. Upon evaluating Pix2Poly on several complex and challenging datasets, we report that Pix2Poly outperforms state-of-the-art methods in several vector shape quality metrics while being an entirely explicit method. Our code is available at https://github.com/yeshwanth95/Pix2Poly.
