From 2699c0f85cf31120ca564d8c30a6172c84cc5fb8 Mon Sep 17 00:00:00 2001 From: Kodai Watanabe <50793960+kodaigit@users.noreply.github.com> Date: Sat, 23 Nov 2024 15:40:25 -0600 Subject: [PATCH] delete extension of an image used to create a image path --- sugar_scene/cameras.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sugar_scene/cameras.py b/sugar_scene/cameras.py index c6f8afe..1632214 100644 --- a/sugar_scene/cameras.py +++ b/sugar_scene/cameras.py @@ -95,7 +95,7 @@ def load_gs_cameras(source_path, gs_output_path, image_resolution=1, # GT data id = camera_transform['id'] name = camera_transform['img_name'] - image_path = os.path.join(image_dir, name + extension) + image_path = os.path.join(image_dir, name) if load_gt_images: image = Image.open(image_path) @@ -543,4 +543,4 @@ def get_spatial_extent(self): radius = 1.1 * half_diagonal return radius - \ No newline at end of file +