Skip to content

Commit

Permalink
changed glob variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanweber committed Jan 19, 2024
1 parent a791591 commit cdd1d15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nerfstudio/process_data/process_data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit cdd1d15

Please sign in to comment.