From 77031d6c1315523842af6508c7694e2ebf815177 Mon Sep 17 00:00:00 2001 From: "spencer@primus" Date: Mon, 8 Apr 2024 13:26:36 -0400 Subject: [PATCH] Formatting --- CUSTOM/convert_any_avstack_labels.py | 5 ++--- CUSTOM/visualize_converted_dataset.py | 5 +---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/CUSTOM/convert_any_avstack_labels.py b/CUSTOM/convert_any_avstack_labels.py index 9fcd2f0152..1bac710658 100644 --- a/CUSTOM/convert_any_avstack_labels.py +++ b/CUSTOM/convert_any_avstack_labels.py @@ -13,8 +13,7 @@ from avstack import calibration from avstack.environment.objects import Occlusion -from avstack.geometry import GlobalOrigin3D, PointMatrix3D, ReferenceFrame -from avstack.geometry import transformations as tforms +from avstack.geometry import PointMatrix3D from avstack.sensors import LidarData @@ -284,7 +283,7 @@ def process_frame( # -- modifications: # (1) box is bottom centered if bbox_3d.where_is_t == "center": - ann_info["bbox_3d"][2] -= bbox_3d.h/2 + ann_info["bbox_3d"][2] -= bbox_3d.h / 2 # (2) yaw is defined as: yaw=0 --> along x, yaw=pi/2 --> along y pass # already this way diff --git a/CUSTOM/visualize_converted_dataset.py b/CUSTOM/visualize_converted_dataset.py index d5a4540be6..244a421fe3 100644 --- a/CUSTOM/visualize_converted_dataset.py +++ b/CUSTOM/visualize_converted_dataset.py @@ -1,5 +1,2 @@ - - - if __name__ == "__main__": - pass \ No newline at end of file + pass