2023-08-25 18:35:46 +01:00
#############################
Waymo
2023-08-26 22:29:54 +01:00
#############################
2023-08-27 15:00:51 +01:00
| Website: https://waymo.com/open/
| Download: https://waymo.com/open/download/
| Paper: https://arxiv.org/abs/2104.10133
The dataset includes:
- 103,354, 20s 10Hz segments (over 20 million frames), mined for interesting interactions
- 574 hours of data
- Sensor data
- 4 short-range lidars
- 1 mid-range lidar
- Object data
- 10.8M objects with tracking IDs
- Labels for 3 object classes - Vehicles, Pedestrians, Cyclists
- 3D bounding boxes for each object
- Mined for interesting behaviors and scenarios for behavior prediction research, such as unprotected turns, merges, lane changes, and intersections
- 3D bounding boxes are generated by a model trained on the Perception Dataset and detailed in our paper: Offboard 3D Object Detection from Point Cloud Sequences
Map data
- 3D map data for each segment
- Locations include: San Francisco, Phoenix, Mountain View, Los Angeles, Detroit, and Seattle
- Added entrances to driveways (the map already Includes lane centers, lane boundaries, road boundaries, crosswalks, speed bumps and stop signs)
- Adjusted some road edge boundary height estimates
2023-12-02 13:50:44 +00:00
1. Install Requirements
2023-08-27 15:00:51 +01:00
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2023-12-02 13:50:44 +00:00
First of all, we have to install tensorflow and Protobuf::
2023-08-27 15:00:51 +01:00
pip install tensorflow==2.11.0
2023-12-02 13:50:44 +00:00
conda install protobuf==3.20
2023-08-27 15:00:51 +01:00
.. note ::
2024-02-20 13:28:09 -08:00
You may fail to install `` protobuf `` if using `` pip install protobuf==3.20 `` . If so, install via `` conda install protobuf=3.20 `` .
2023-12-02 13:50:44 +00:00
2023-08-27 15:00:51 +01:00
2023-08-27 16:26:00 +01:00
2. Download TFRecord
2023-08-27 15:00:51 +01:00
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Waymo motion dataset is at `Google Cloud <https://console.cloud.google.com/storage/browser/waymo_open_dataset_motion_v_1_2_0> `_ .
For downloading all datasets, `` gsutil `` is required.
The installation tutorial is at https://cloud.google.com/storage/docs/gsutil_install.
2024-02-19 16:59:38 -08:00
Login you google account via::
gcloud init
After this, you can access all data and download them to current directory `` ./ `` by (don't forget the dot!)::
2023-08-27 15:00:51 +01:00
gsutil -m cp -r "gs://waymo_open_dataset_motion_v_1_2_0/uncompressed/scenario" .
Or one just can download a part of the dataset using command like::
gsutil -m cp -r "gs://waymo_open_dataset_motion_v_1_2_0/uncompressed/scenario/training_20s" .
The downloaded data should be stored in a directory like this::
waymo
├── training_20s/
| ├── training_20s.tfrecord-00000-of-01000
| ├── training_20s.tfrecord-00001-of-01000
| └── ...
├── validation/
| ├── validation.tfrecord-00000-of-00150
| ├── validation.tfrecord-00001-of-00150
| └── ...
└── testing/
├── testing.tfrecord-00000-of-00150
├── testing.tfrecord-00001-of-00150
└── ...
2023-08-27 16:26:00 +01:00
3. Build Waymo Database
2023-08-27 15:00:51 +01:00
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Run the following command to extract scenarios in any directory containing `` tfrecord `` .
2024-02-20 13:28:09 -08:00
2023-08-27 15:00:51 +01:00
Here we take converting raw data in `` training_20s `` as an example::
2024-02-20 13:28:09 -08:00
python -m scenarionet.convert_waymo -d /path/to/your/database --raw_data_path ./waymo/training_20s --num_workers 64
2023-08-27 15:00:51 +01:00
Now all converted scenarios will be placed at `` /path/to/your/database `` and are ready to be used in your work.
2024-02-20 13:28:09 -08:00
.. note ::
When running the conversion, please double check whether GPU is being used. This converter should NOT use GPU.
We have disable GPU usage by `` os.environ["CUDA_VISIBLE_DEVICES"] = "" `` .
2023-08-27 16:26:00 +01:00
Known Issues: Waymo
2023-08-27 18:17:47 +01:00
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2023-08-27 15:00:51 +01:00
N/A