vita-epfl/UniTraj

A Unified Framework for scalable Vehicle Trajectory Prediction, ECCV 2024

What it solves

Vehicle trajectory prediction research often suffers from fragmentation: models are built and tested on a single dataset, making it hard to compare results or reuse code across different benchmarks. UniTraj solves this by providing a single, unified pipeline that lets you train and evaluate trajectory prediction models on multiple real-world driving datasets (Waymo, nuPlan, nuScenes, Argoverse2) without rewriting code for each one. It also simplifies adding new models and supports data selection to reduce training data while improving performance.

How it works

UniTraj is organized around three core components: datasets, models, and configuration. It uses ScenarioNet to pre-process raw driving data into a common format. Configuration is handled by Hydra, which allows hierarchical and model-specific settings. Training is powered by PyTorch Lightning, and logging is done with WandB. Each model (e.g., AutoBot, MTR, Wayformer, Forecast-MAE, EMP, SEAM, SHARP) has its own dataset class, model class, and config file that inherit from base classes. The pipeline includes commands for training, evaluation, and dataset analysis. For evaluation, you can optionally enable official Waymo or nuScenes evaluation tools by setting flags in the config file.

Who it’s for

This framework is aimed at researchers and practitioners in autonomous driving and trajectory prediction who want to develop, test, and compare models across multiple large-scale driving datasets. It is also useful for those who need a clean, modular baseline to integrate new trajectory prediction ideas without building the entire data-loading and training stack from scratch.

Highlights

  • Supports multiple real-world datasets (Waymo, nuPlan, nuScenes, Argoverse2) in a single unified pipeline.
  • Powered by Hydra, PyTorch Lightning, and WandB for easy configuration, training, and logging.
  • Includes several state-of-the-art models: AutoBot, MTR, Wayformer, Forecast-MAE, EMP, SEAM, SHARP, and SMART (sim agents).
  • Enables data selection with TAROT to use less data for improved performance.
  • Offers optional official evaluation tools for Waymo and nuScenes.

Related

  • Project
  • Project
  • Project
  • Project