From 4a5008d24647e9425bee12907746e265fa0a127d Mon Sep 17 00:00:00 2001 From: kundetiaishwarya Date: Sat, 15 Mar 2025 16:58:36 +0000 Subject: [PATCH] Fix directory creation bug in generate_colmap.py --- preprocess/generate_colmap.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/preprocess/generate_colmap.py b/preprocess/generate_colmap.py index 0724ffde..2dd9ae17 100644 --- a/preprocess/generate_colmap.py +++ b/preprocess/generate_colmap.py @@ -46,11 +46,8 @@ def setup_dirs(project_dir): os.makedirs(os.path.join(project_dir, "camera_calibration/rectified")) if not os.path.exists(os.path.join(project_dir, "camera_calibration/unrectified")): - os.makedirs(os.path.join(project_dir, "camera_calibration/unrectified")) - os.makedirs(os.path.join(project_dir, "camera_calibration/unrectified", "sparse")) + os.makedirs(os.path.join(project_dir, "camera_calibration/unrectified/sparse")) - if not os.path.exists(os.path.join(project_dir, "camera_calibration/unrectified", "sparse")): - os.makedirs(os.path.join(project_dir, "camera_calibration/unrectified", "sparse")) if __name__ == '__main__': parser = argparse.ArgumentParser()