nuScenes
Download nuScenes V1.0 full dataset data, CAN bus and map(v1.3) extensions HERE, then follow the steps below to prepare the data.
Download nuScenes, CAN_bus and Map extensions
cd UniAD
mkdir data
# Download nuScenes V1.0 full dataset data directly to (or soft link to) UniAD/data/
# Download CAN_bus and Map(v1.3) extensions directly to (or soft link to) UniAD/data/nuscenes/
Prepare UniAD data info
Option1: We have already prepared the off-the-shelf data infos for you in HuggingFace::OpenDriveLab/UniAD2.0_R101_nuScenes:
cd UniAD/data
mkdir infos && cd infos
wget https://huggingface.co/OpenDriveLab/UniAD2.0_R101_nuScenes/resolve/main/data/nuscenes_infos_temporal_train.pkl # train_infos
wget https://huggingface.co/OpenDriveLab/UniAD2.0_R101_nuScenes/resolve/main/data/nuscenes_infos_temporal_val.pkl # val_infos
Option2: You can also generate the data infos by yourself:
The generated data path will contain the root directory. Please remember to change the
data_rootto empty in config files if using your generated pkl. Refer to https://github.com/OpenDriveLab/UniAD/issues/13.
cd UniAD/data
mkdir infos
./tools/uniad_create_data.sh
# This will generate nuscenes_infos_temporal_{train,val}.pkl
Prepare Motion Anchors
We already upload motion anchors in HuggingFace::OpenDriveLab/UniAD2.0_R101_nuScenes
cd UniAD/data
mkdir others && cd others
wget https://huggingface.co/OpenDriveLab/UniAD2.0_R101_nuScenes/resolve/main/data/motion_anchor_infos_mode6.pkl
The Overall Structure
Please make sure the structure of UniAD is as follows:
UniAD βββ projects/ βββ tools/ βββ ckpts/ β βββ bevformer_r101_dcn_24ep.pth β βββ uniad_base_track_map.pth | βββ uniad_base_e2e.pth βββ data/ β βββ nuscenes/ β β βββ can_bus/ β β βββ maps/ β β βββ lidarseg/ β β βββ samples/ β β βββ sweeps/ β β βββ v1.0-test/ β β βββ v1.0-trainval/ β β βββ v1.0-mini/ β βββ infos/ β β βββ nuscenes_infos_temporal_train.pkl β β βββ nuscenes_infos_temporal_val.pkl β βββ others/ β β βββ motion_anchor_infos_mode6.pkl
<- Last Page: Installation
-> Next Page: Train/Eval UniAD