From cdd1d1507e78c92fdf0c192a2b2739950dec7d7c Mon Sep 17 00:00:00 2001 From: Ethan Weber Date: Fri, 19 Jan 2024 19:51:54 +0000 Subject: [PATCH] changed glob variable name --- nerfstudio/process_data/process_data_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nerfstudio/process_data/process_data_utils.py b/nerfstudio/process_data/process_data_utils.py index 91132fe4ac..40381b2173 100644 --- a/nerfstudio/process_data/process_data_utils.py +++ b/nerfstudio/process_data/process_data_utils.py @@ -68,8 +68,8 @@ def list_images(data: Path, recursive: bool = False) -> List[Path]: Paths to images contained in the directory """ allowed_exts = [".jpg", ".jpeg", ".png", ".tif", ".tiff"] + ALLOWED_RAW_EXTS - glob = "**/[!.]*" if recursive else "[!.]*" - image_paths = sorted([p for p in data.glob(glob) if p.suffix.lower() in allowed_exts]) + glob_str = "**/[!.]*" if recursive else "[!.]*" + image_paths = sorted([p for p in data.glob(glob_str) if p.suffix.lower() in allowed_exts]) return image_paths