File size: 2,623 Bytes
d40a0ff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75


# nuScenes
Download nuScenes V1.0 full dataset data, CAN bus and map(v1.3) extensions [HERE](https://www.nuscenes.org/download), then follow the steps below to prepare the data.


**Download nuScenes, CAN_bus and Map extensions**
```shell
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](https://huggingface.co/OpenDriveLab/UniAD2.0_R101_nuScenes/tree/main/data):*
```shell
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_root` to empty in config files if using your generated pkl. Refer to https://github.com/OpenDriveLab/UniAD/issues/13.
```shell
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](https://huggingface.co/OpenDriveLab/UniAD2.0_R101_nuScenes/tree/main/data)
```shell
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](./INSTALL.md)

-> Next Page: [Train/Eval UniAD](./TRAIN_EVAL.md)