From 21715b04599c84f78cd965e2bf00050c6c8cab73 Mon Sep 17 00:00:00 2001 From: Eleonore Francois Date: Fri, 18 Nov 2022 16:25:59 +0100 Subject: [PATCH] Fix index of element to get in tutorials --- tutorials/2-frame.py | 2 +- tutorials/2.1-frame.py | 2 +- tutorials/2.2-frame.py | 2 +- tutorials/2.3-frame.py | 2 +- tutorials/3-boxes.py | 2 +- tutorials/3.1-boxes.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tutorials/2-frame.py b/tutorials/2-frame.py index 43c856ed..04f46c42 100644 --- a/tutorials/2-frame.py +++ b/tutorials/2-frame.py @@ -4,7 +4,7 @@ waymo_dataset = WaymoDataset(split=Split.VAL, cameras=["front"], labels=["gt_boxes_2d"]) # Get a frame at some position in the dataset -data = waymo_dataset.get(42) +data = waymo_dataset.get(2) # The frame object is a special type of Tensor (Labeled Tensor) with special attributes and labels # attached to it diff --git a/tutorials/2.1-frame.py b/tutorials/2.1-frame.py index 51e55e50..99485f8a 100644 --- a/tutorials/2.1-frame.py +++ b/tutorials/2.1-frame.py @@ -1,7 +1,7 @@ from aloscene.renderer import View from alodataset import WaymoDataset, Split -frame = WaymoDataset(split=Split.VAL, cameras=["front"], labels=["gt_boxes_2d"]).get(42)["front"] +frame = WaymoDataset(split=Split.VAL, cameras=["front"], labels=["gt_boxes_2d"]).get(2)["front"] ###### # Here are some example of the operations that can be done on a frame diff --git a/tutorials/2.2-frame.py b/tutorials/2.2-frame.py index c4532d20..d1e4c71e 100644 --- a/tutorials/2.2-frame.py +++ b/tutorials/2.2-frame.py @@ -7,7 +7,7 @@ cameras=["front"], labels=["gt_boxes_2d"], sequence_size=2, # --> Let's use sequence of two frame -).get(42)["front"] +).get(2)["front"] ###### # The frame tensors and its labels diff --git a/tutorials/2.3-frame.py b/tutorials/2.3-frame.py index 8b3d7bf6..4b174b83 100644 --- a/tutorials/2.3-frame.py +++ b/tutorials/2.3-frame.py @@ -3,7 +3,7 @@ import torch frame = WaymoDataset(split=Split.VAL, cameras=["front"], labels=["gt_boxes_2d"], sequence_size=1,).get( # - 42 + 2 )["front"] ###### diff --git a/tutorials/3-boxes.py b/tutorials/3-boxes.py index a81a6991..37cf0480 100644 --- a/tutorials/3-boxes.py +++ b/tutorials/3-boxes.py @@ -3,7 +3,7 @@ import torch frames = WaymoDataset(split=Split.VAL, cameras=["front"], labels=["gt_boxes_2d"], sequence_size=2,).get( # - 42 + 2 )["front"] ###### diff --git a/tutorials/3.1-boxes.py b/tutorials/3.1-boxes.py index 98da6882..59046423 100644 --- a/tutorials/3.1-boxes.py +++ b/tutorials/3.1-boxes.py @@ -3,7 +3,7 @@ import torch frames = WaymoDataset(split=Split.VAL, cameras=["front"], labels=["gt_boxes_2d"], sequence_size=2,).get( - 42 + 2 )["front"] ######