|
2 | 2 |
|
3 | 3 | To get started with NAVSIM: |
4 | 4 |
|
5 | | -### 1. Download the demo data |
6 | | -First, you need to download the OpenScene mini logs and sensor blobs, as well as the nuPlan maps. |
| 5 | +### 1. Clone the navsim-devkit |
| 6 | +Clone the repository |
| 7 | +``` |
| 8 | +git clone https://github.com/autonomousvision/navsim.git |
| 9 | +cd navsim |
| 10 | +``` |
| 11 | +### 2. Download the demo data |
| 12 | +You need to download the OpenScene logs and sensor blobs, as well as the nuPlan maps. |
| 13 | +We provide scripts to download the nuplan maps, the mini split and the test split. |
| 14 | +Navigate to the download directory and download the maps |
7 | 15 |
|
8 | 16 | **NOTE: Please check the [LICENSE file](https://motional-nuplan.s3-ap-northeast-1.amazonaws.com/LICENSE) before downloading the data.** |
9 | 17 |
|
10 | 18 | ``` |
11 | | -wget https://motional-nuplan.s3-ap-northeast-1.amazonaws.com/public/nuplan-v1.1/nuplan-maps-v1.1.zip && unzip nuplan-maps-v1.1.zip |
12 | | -wget https://s3.eu-central-1.amazonaws.com/avg-projects-2/navsim/navsim_logs.zip && unzip navsim_logs.zip |
13 | | -wget https://s3.eu-central-1.amazonaws.com/avg-projects-2/navsim/sensor_blobs.zip && unzip sensor_blobs.zip |
| 19 | +cd download && ./download_maps |
14 | 20 | ``` |
15 | | -The `sensor_blobs` file is fairly large (90 GB). For understanding the metrics and testing the naive baselines in the demo, this is not strictly necessary. |
16 | 21 |
|
17 | | -### 2. Install the navsim-devkit |
18 | | -Next, setup the environment and install navsim. |
19 | | -Clone the repository |
| 22 | +Next download the mini split and the test split |
20 | 23 | ``` |
21 | | -git clone https://github.com/kashyap7x/navsim.git |
22 | | -cd navsim |
23 | | -``` |
24 | | -Then create a new environment and install the required dependencies: |
25 | | -``` |
26 | | -conda env create --name navsim -f environment.yml |
27 | | -conda activate navsim |
28 | | -pip install -e . |
| 24 | +./download_mini |
| 25 | +./download_test |
29 | 26 | ``` |
30 | 27 |
|
| 28 | +**The mini split and the test split take around ~160GB and ~220GB of memory respectively** |
| 29 | + |
| 30 | +This will download the splits into the download directory. From there, move it to create the following structure. |
| 31 | +```angular2html |
| 32 | +~/navsim_workspace |
| 33 | +├── navsim (containing the devkit) |
| 34 | +├── exp |
| 35 | +└── dataset |
| 36 | + ├── maps |
| 37 | + ├── navsim_logs |
| 38 | + | ├── test |
| 39 | + │ └── mini |
| 40 | + └── sensor_blobs |
| 41 | + ├── test |
| 42 | + └── mini |
| 43 | +``` |
31 | 44 | Set the required environment variables, by adding the following to your `~/.bashrc` file |
| 45 | +Based on the structure above, the environment variables need to be defined as: |
32 | 46 | ``` |
33 | | -export NAVSIM_DEVKIT_ROOT=/path/to/navsim/devkit |
34 | | -export NUPLAN_EXP_ROOT=/path/to/navsim/exp |
35 | | -export NUPLAN_MAPS_ROOT=/path/to/nuplan/maps |
36 | | -export OPENSCENE_DATA_ROOT=/path/to/openscene |
| 47 | +export NUPLAN_MAPS_ROOT="$HOME/navsim_workspace/dataset/maps" |
| 48 | +export NUPLAN_EXP_ROOT="$HOME/navsim_workspace/exp" |
| 49 | +export NAVSIM_DEVKIT_ROOT="$HOME/navsim_workspace/navsim" |
| 50 | +export OPENSCENE_DATA_ROOT="$HOME/navsim_workspace/dataset" |
37 | 51 | ``` |
| 52 | + |
| 53 | +### 3. Install the navsim-devkit |
| 54 | +Finally, install navsim. |
| 55 | +To this end, create a new environment and install the required dependencies: |
| 56 | +``` |
| 57 | +conda env create --name navsim -f environment.yml |
| 58 | +conda activate navsim |
| 59 | +pip install -e . |
| 60 | +``` |
0 commit comments