HoliTracer

August 7, 2025 · View on GitHub

arXiv Open In Colab

Official implementation of the ICCV 2025 paper HoliTracer: Holistic Vectorization of Geographic Objects from Large-Size Remote Sensing Imagery.

HoliTracer Overview

Abstract: This paper introduces HoliTracer, the framework designed to holistically extract vectorized geographic objects from large-size RSI. In HoliTracer, we enhance segmentation of large-size RSI using the Context Attention Net (CAN), which employs a local-to-global attention mechanism to capture contextual dependencies. Furthermore, we achieve holistic vectorization through a robust pipeline that leverages the Mask Contour Reformer (MCR) to reconstruct polygons and the Polygon Sequence Tracer (PST) to trace vertices. Extensive experiments on large-size RSI datasets, including buildings, water bodies, and roads, demonstrate that HoliTracer outperforms state-of-the-art methods.

1. Installation

Requirements

  • OS: Linux distribution, our paper experiments are based on Ubuntu 22.04
  • Hardware: A GPU with at least 24GB of memory and CUDA support is needed for training (8GB is enough for inference). Our experiments were performed on NVIDIA A100 GPUs with 40GB of memory.

Setup Instructions

git clone https://github.com/vvangfaye/HoliTracer.git
cd HoliTracer
pip/conda install torch torchvision # our paper experiments are based on pytorch 2.5.1
pip install -r requirements.txt # install other dependencies

# install pycocotools with holitracer compatible version.
git clone https://github.com/vvangfaye/cocoapi-holi.git 
cd cocoapi-holi/PythonAPI && python setup.py install

# install holitracer
cd ../../ && pip install -e . # install holitracer with editable mode

2. Datasets

Dataset NameImage SizeSpatial ResolutionImagesTrain/Val/TestDownload Link
WHU-building10,000 × 10,0000.075 m400320 / 40 / 40Google Drive
GLH-water12,800 × 12,8000.3 m250200 / 25 / 25Google Drive
VHR-road12,500 × 12,5000.2 m208166 / 21 / 21Google Drive

Download the datasets from the provided links and extract them to the data/datasets directory.

3. Model Zoo

Pre-trained models and performance metrics:

DatasetPoLiS ↓CIoUAPAPsAPmAPlIoUF1Download Link
WHU-building3.6382.3061.0740.3780.3060.0091.6095.41Google Drive
GLH-water81.8759.2420.8419.8838.7772.2985.6891.51Google Drive
VHR-road134.136.101.580.080.403.9946.4860.63Google Drive

Download the pre-trained models from the provided links and extract them to the data/models directory.

4. Inference and Visualization

Run the demo file to get started:

  • demo.py and geo_demo.py(TIFF and Shapefile support): Includes examples for inference and visualization.

Or run the python notebook Open In Colab results

5. Training

Training scripts and instructions are available in:

Refer to this file for detailed steps to train HoliTracer on target dataset.

Contact

If you have any questions about it, please let me know. (Create an 🐛 issue or 📧 email: wangfaye@whu.edu.cn)

We are developing a unified vectorization framework for remote sensing imagery in EarthVec, and we are happy to collaborate with you.