README.md

March 3, 2025 · View on GitHub

MapTR

An End-to-End Framework for Online Vectorized HD Map Construction

Bencheng Liao1,2,3 *, Shaoyu Chen1,3 *, Yunchi Zhang1,3 , Bo Jiang1,3 ,Tianheng Cheng1,3, Qian Zhang3, Wenyu Liu1, Chang Huang3, Xinggang Wang1 :email:

1 School of EIC, HUST, 2 Institute of Artificial Intelligence, HUST, 3 Horizon Robotics

(*) equal contribution, (:email:) corresponding author.

ArXiv Preprint (arXiv 2208.14437)

openreview ICLR'23, accepted as ICLR Spotlight

extended ArXiv Preprint MapTRv2 (arXiv 2308.05736), accepted to IJCV 2024

News

  • Feb. 27th, 2025: Check out our latest work, DiffusionDrive, accepted to CVPR 2025! This study explores multi-modal end-to-end driving using diffusion models for real-time and real-world applications.
  • Oct. 6th, 2024: MapTRv2 is accepted to IJCV 2024!
  • Feb 20th, 2024: MapTRv2-based VADv2 is presented on arXiv paper project page.
  • Aug. 31th, 2023: initial MapTRv2 is released at maptrv2 branch. Please run git checkout maptrv2 to use it.
  • Aug. 14th, 2023: As required by many researchers, the code of MapTR-based map annotation framework (VMA) will be released at https://github.com/hustvl/VMA recently.
  • Aug. 10th, 2023: We release MapTRv2 on Arxiv. MapTRv2 demonstrates much stronger performance and much faster convergence. To better meet the requirement of the downstream planner (like PDM), we introduce an extra semantic——centerline (using path-wise modeling proposed by LaneGAP). Code & model will be released in late August. Please stay tuned!
  • May. 12th, 2023: MapTR now support various bevencoder, such as BEVFormer encoder and BEVFusion bevpool. Check it out!
  • Apr. 20th, 2023: Extending MapTR to a general map annotation framework (paper, code), with high flexibility in terms of spatial scale and element type.
  • Mar. 22nd, 2023: By leveraging MapTR, VAD (paper, code) models the driving scene as fully vectorized representation, achieving SoTA end-to-end planning performance!
  • Jan. 21st, 2023: MapTR is accepted to ICLR 2023 as Spotlight Presentation!
  • Nov. 11st, 2022: We release an initial version of MapTR.
  • Aug. 31st, 2022: We released our paper on Arxiv. Code/Models are coming soon. Please stay tuned! ☕️

Introduction

MapTR/MapTRv2 is a simple, fast and strong online vectorized HD map construction framework.

framework

High-definition (HD) map provides abundant and precise static environmental information of the driving scene, serving as a fundamental and indispensable component for planning in autonomous driving system. In this paper, we present Map TRansformer, an end-to-end framework for online vectorized HD map construction. We propose a unified permutation-equivalent modeling approach, i.e., modeling map element as a point set with a group of equivalent permutations, which accurately describes the shape of map element and stabilizes the learning process. We design a hierarchical query embedding scheme to flexibly encode structured map information and perform hierarchical bipartite matching for map element learning. To speed up convergence, we further introduce auxiliary one-to-many matching and dense supervision. The proposed method well copes with various map elements with arbitrary shapes. It runs at real-time inference speed and achieves state-of-the-art performance on both nuScenes and Argoverse2 datasets. Abundant qualitative results show stable and robust map construction quality in complex and various driving scenes.

Models

Results from the MapTRv2 paper

comparison

MethodBackboneLr SchdmAPFPS
MapTRR18110ep45.935.0
MapTRR5024ep50.315.1
MapTRR50110ep58.715.1
MapTRv2R18110ep52.333.7
MapTRv2R5024ep61.514.1
MapTRv2R50110ep68.714.1
MapTRv2V2-99110ep73.49.9

Notes:

  • FPS is measured on NVIDIA RTX3090 GPU with batch size of 1 (containing 6 view images).
  • All the experiments are performed on 8 NVIDIA GeForce RTX 3090 GPUs.

Results from this repo.

MapTR

nuScenes dataset

MethodBackboneBEVEncoderLr SchdmAPFPSmemoryConfigDownload
MapTR-nanoR18GKT110ep46.335.011907M (bs 24)configmodel / log
MapTR-tinyR50GKT24ep50.015.110287M (bs 4)configmodel / log
MapTR-tinyR50GKT110ep59.315.110287M (bs 4)configmodel / log
MapTR-tinyCamera & LiDARGKT24ep62.76.011858M (bs 4)configmodel / log
MapTR-tinyR50bevpool24ep50.114.79817M (bs 4)configmodel / log
MapTR-tinyR50bevformer24ep48.715.010219M (bs 4)configmodel / log
MapTR-tiny+R50GKT24ep51.315.115158M (bs 4)configmodel / log
MapTR-tiny+R50bevformer24ep53.315.015087M (bs 4)configmodel / log

Notes:

  • + means that we introduce temporal setting.

MapTRv2

Please git checkout maptrv2 and follow the install instruction to use following checkpoint

nuScenes dataset

MethodBackboneBEVEncoderLr SchdmAPFPSmemoryConfigDownload
MapTRv2R50bevpool24ep61.414.119426M (bs 24)configmodel / log
MapTRv2*R50bevpool24ep54.3WIP20363M (bs 24)configmodel / log

Argoverse2 dataset

MethodBackboneBEVEncoderLr SchdmAPFPSmemoryConfigDownload
MapTRv2R50bevpool6ep64.314.120580 (bs 24)configmodel / log
MapTRv2*R50bevpool6ep61.3WIP21515 (bs 24)configmodel / log

Notes:

  • * means that we introduce an extra semantic——centerline (using path-wise modeling proposed by LaneGAP).

Qualitative results on nuScenes val split and Argoverse2 val split

MapTR/MapTRv2 maintains stable and robust map construction quality in various driving scenes.

visualization

MapTRv2 on whole nuScenes val split

Youtube

MapTRv2 on whole Argoverse2 val split

Youtube

End-to-end Planning based on MapTR

https://user-images.githubusercontent.com/26790424/229679664-0e9ba5e8-bf2c-45e0-abbc-36d840ee5cc9.mp4

Getting Started

Catalog

  • temporal modules
  • centerline detection & topology support (refer to maptrv2 branch)
  • multi-modal checkpoints
  • multi-modal code
  • lidar modality code
  • argoverse2 dataset
  • Nuscenes dataset
  • MapTR checkpoints
  • MapTR code
  • Initialization

Acknowledgements

MapTR is based on mmdetection3d. It is also greatly inspired by the following outstanding contributions to the open-source community: BEVFusion, BEVFormer, HDMapNet, GKT, VectorMapNet.

Citation

If you find MapTR is useful in your research or applications, please consider giving us a star 🌟 and citing it by the following BibTeX entry.

@article{liao2024maptrv2,
  title={Maptrv2: An end-to-end framework for online vectorized hd map construction},
  author={Liao, Bencheng and Chen, Shaoyu and Zhang, Yunchi and Jiang, Bo and Zhang, Qian and Liu, Wenyu and Huang, Chang and Wang, Xinggang},
  journal={International Journal of Computer Vision},
  pages={1--23},
  year={2024},
  publisher={Springer}
}
@inproceedings{MapTR,
  title={MapTR: Structured Modeling and Learning for Online Vectorized HD Map Construction},
  author={Liao, Bencheng and Chen, Shaoyu and Wang, Xinggang and Cheng, Tianheng, and Zhang, Qian and Liu, Wenyu and Huang, Chang},
  booktitle={International Conference on Learning Representations},
  year={2023}
}
@inproceedings{liao2025lane,
  title={Lane graph as path: Continuity-preserving path-wise modeling for online lane graph construction},
  author={Liao, Bencheng and Chen, Shaoyu and Jiang, Bo and Cheng, Tianheng and Zhang, Qian and Liu, Wenyu and Huang, Chang and Wang, Xinggang},
  booktitle={European Conference on Computer Vision},
  pages={334--351},
  year={2024},
  organization={Springer}
}