From 5c095dc5678b443e5db6b40f76f34af18a2799ae Mon Sep 17 00:00:00 2001 From: Benjamin Wilson Date: Sun, 7 May 2023 09:06:59 -0700 Subject: [PATCH 1/2] Update 3d_object_detection.py --- tutorials/3d_object_detection.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tutorials/3d_object_detection.py b/tutorials/3d_object_detection.py index db2497f2..726dd89a 100644 --- a/tutorials/3d_object_detection.py +++ b/tutorials/3d_object_detection.py @@ -55,10 +55,8 @@ def main( # Cuboids might not be available (e.g., using the "test" split). if sweep.cuboids is not None: - # Annotations in (x,y,z,l,w,h,yaw) format. - cuboids = sweep.cuboids.as_tensor() - # Annotations in (x,y,z,l,theta) format. + # Annotations in (x,y,z,l,w,h,yaw) format. # 1-DOF rotation. xyzlwh_t = sweep.cuboids.as_tensor() @@ -68,7 +66,7 @@ def main( # Access track uuid. track_uuid = sweep.cuboids.track_uuid - # print(lidar_xyz_city, cuboids, xyzlwh_t, category, track_uuid) + # print(lidar_xyz_city, xyzlwh_t, category, track_uuid) if i >= max_iterations: logger.info(f"Reached max iterations of {max_iterations}!") From 4e477a2218ae9004269273e72f704cb419264cce Mon Sep 17 00:00:00 2001 From: Benjamin Wilson Date: Sun, 7 May 2023 14:46:29 -0700 Subject: [PATCH 2/2] Apply formatting. --- tutorials/3d_object_detection.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tutorials/3d_object_detection.py b/tutorials/3d_object_detection.py index 726dd89a..ff6d9cc5 100644 --- a/tutorials/3d_object_detection.py +++ b/tutorials/3d_object_detection.py @@ -55,7 +55,6 @@ def main( # Cuboids might not be available (e.g., using the "test" split). if sweep.cuboids is not None: - # Annotations in (x,y,z,l,w,h,yaw) format. # 1-DOF rotation. xyzlwh_t = sweep.cuboids.as_tensor()