Data Preparation

February 19, 2025 · View on GitHub

Download

First download the text data and image data from the following links:

DataLink
TextHugging Face HuggingFace
ImageGoogle Drive Google Drive

Then create the data folder and organize the data as follows:

data/
├── nuscenes/
│   └── samples/
├── corruption/
│   ├── BitError/
│   ├── Bright/
│   ├── CameraCrash/
│   └── ...
├── drivebench-test.json
├── biterror.json
├── bright.json
└── camcrash.json

Preprocess

Preprocess the data by running the following command:

python tools/preprocess.py data/drivebench-test.json data/drivebench-test-final.json