The traffic prediction library trying to end benchmark chaos
LibCity corrals 74 traffic models into one PyTorch pipeline to make urban forecasting research actually reproducible.

What it does
LibCity is a PyTorch-based framework that collects traffic prediction tasks—traffic flow, speed, ETA, map matching, trajectory prediction, and more—into a single modular pipeline. It provides standardized data storage via its own atomic files format, unified model interfaces, and evaluation metrics, aiming to replace the usual scatter of one-off research scripts. The library currently hosts 74 reproduced models across 9 tasks and 52 datasets, treating traffic research less like a custom art project and more like an assembly line.
The interesting bit
The real value is the bureaucracy: by forcing every model through the same configuration, data, and evaluation modules, LibCity attempts to solve the reproducibility problem that plagues spatial-temporal research. It even spawned a MindSpore twin, M-LibCity, suggesting the authors believe the pipeline matters more than the backend.
Key highlights
- 74 reproduced models covering traffic state, trajectory, ETA, map matching, and road network representation learning
- 52 built-in datasets with a unified
atomic filesstorage format - Modular five-part architecture: configuration, data loading, model execution, evaluation, and training
- TensorBoard integration for loss visualization during training
- A separate web-based experiment management tool for visual workflow control
Caveats
- Installation is source-only; there is no PyPI package, so you will be cloning and configuring manually
- Datasets must be downloaded separately from BaiduDisk or Google Drive and converted to the
atomic filesformat before use - The README is heavy on news and paper citations but light on concrete benchmark comparisons between the included models
Verdict
Researchers in urban computing and traffic forecasting who are tired of rewriting data loaders should look here; practitioners seeking a polished, pip-installable production tool will find it too academic.
Frequently asked
- What is LibCity/Bigscity-LibCity?
- LibCity corrals 74 traffic models into one PyTorch pipeline to make urban forecasting research actually reproducible.
- Is Bigscity-LibCity open source?
- Yes — LibCity/Bigscity-LibCity is open source, released under the Apache-2.0 license.
- What language is Bigscity-LibCity written in?
- LibCity/Bigscity-LibCity is primarily written in Python.
- How popular is Bigscity-LibCity?
- LibCity/Bigscity-LibCity has 1.1k stars on GitHub.
- Where can I find Bigscity-LibCity?
- LibCity/Bigscity-LibCity is on GitHub at https://github.com/LibCity/Bigscity-LibCity.