license:cc-by-nc-sa-4.0 region:us
---
license: cc-by-nc-sa-4.0
viewer: false
---
# DriveLM Dataset for Perception, Prediction, Planning (P3) and Logic

Welcome to the DriveLM Dataset, the first of its kind to facilitate P3 and logic. Our project's GitHub repository can be found at [https://github.com/OpenDriveLab/DriveLM](https://github.com/OpenDriveLab/DriveLM). 

## Demo Dataset

Our demo dataset consists of a collection of questions and answers from six scenes, containing a total of 15 key frames. The dataset is provided in two versions:

- `v1_0_train_demo.json`: In this file, questions and answers are not augmented using GPT-3.5/4.0. The answers tend to follow relatively fixed patterns, resulting in straightforward and less diverse responses.
- `gpt_augmented_v1_0_train_demo.json`: Unlike the previous file, questions and answers in this version have been augmented using GPT. This optimization enhances the diversity of Q&A pairs. Consequently, responses are not limited to simple and direct Q&A, but may include richer expressions and content.

## Usage

1. Download the nuScenes V1.0 full dataset and CAN bus expansion data from [Here](https://www.nuscenes.org/download).

2. Follow the steps outlined in [Here](https://github.com/fundamentalvision/BEVFormer/blob/master/docs/prepare_dataset.md) to prepare the nuScenes dataset. This process will generate `nuscenes_infos_temporal_{train,val}.pkl`.

3. Download the provided dataset and organize it as follows:

  ```
  DriveLM
  ├── data/
  │   ├── QA_dataset/
  │   │   ├── train.json
  │   │   ├── val.json
  │   ├── nuscenes/
  │   │   ├── maps/
  │   │   ├── samples/
  │   │   ├── sweeps/
  │   │   ├── v1.0-test/
  |   |   ├── v1.0-trainval/
  |   |   ├── nuscenes_infos_temporal_train.pkl
  |   |   ├── nuscenes_infos_temporal_val.pkl
  ```
## License and Citation

This language dataset is licensed under [CC-BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/). If you use this dataset, please cite our work: 

```BibTeX
@misc{drivelm2023,
  title={DriveLM: Drive on Language},
  author={DriveLM Contributors},
  howpublished={\url{https://github.com/OpenDriveLab/DriveLM}},
  year={2023}
}
```

For more information and updates, please visit our [GitHub repository](https://github.com/OpenDriveLab/DriveLM).

