diff --git a/nerfstudio/process_data/process_data_utils.py b/nerfstudio/process_data/process_data_utils.py index 91132fe4a..40381b217 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