Skip to content

Commit

Permalink
Add dataroot to prediction tutorial, see nutonomy#382 (nutonomy#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
holger-motional authored May 5, 2020
1 parent 3211ed8 commit be551d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions python-sdk/tutorials/prediction_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"\n",
"It is organized into the following sections:\n",
"\n",
"1. Data splis for the challenge\n",
"1. Data splits for the challenge\n",
"2. Getting past and future data for an agent \n",
"3. Changes to the Map API\n",
"4. Overview of input representation\n",
Expand All @@ -33,7 +33,7 @@
"from nuscenes import NuScenes\n",
"\n",
"# This is the path where you stored your copy of the nuScenes dataset.\n",
"DATAROOT = '/data/sets/nuscenes/'\n",
"DATAROOT = '/data/sets/nuscenes'\n",
"\n",
"nuscenes = NuScenes('v1.0-mini', dataroot=DATAROOT)"
]
Expand All @@ -58,7 +58,7 @@
"outputs": [],
"source": [
"from nuscenes.eval.prediction.splits import get_prediction_challenge_split\n",
"mini_train = get_prediction_challenge_split(\"mini_train\")\n",
"mini_train = get_prediction_challenge_split(\"mini_train\", dataroot=DATAROOT)\n",
"mini_train[:5]"
]
},
Expand Down Expand Up @@ -210,7 +210,7 @@
"outputs": [],
"source": [
"from nuscenes.map_expansion.map_api import NuScenesMap\n",
"nusc_map = NuScenesMap(map_name='singapore-onenorth')"
"nusc_map = NuScenesMap(map_name='singapore-onenorth', dataroot=DATAROOT)"
]
},
{
Expand Down Expand Up @@ -690,7 +690,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.4"
"version": "3.7.7"
}
},
"nbformat": 4,
Expand Down

0 comments on commit be551d8

Please sign in to comment.