mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-04 14:58:55 +08:00
changed glob variable name
This commit is contained in:
1 parent
a7915915a8
commit
cdd1d1507e
1 file changed
+2
-2
@@ -68,8 +68,8 @@ def list_images(data: Path, recursive: bool = False) -> List[Path]:
|
|||||||
Paths to images contained in the directory
|
Paths to images contained in the directory
|
||||||
"""
|
"""
|
||||||
allowed_exts = [".jpg", ".jpeg", ".png", ".tif", ".tiff"] + ALLOWED_RAW_EXTS
|
allowed_exts = [".jpg", ".jpeg", ".png", ".tif", ".tiff"] + ALLOWED_RAW_EXTS
|
||||||
glob = "**/[!.]*" if recursive else "[!.]*"
|
glob_str = "**/[!.]*" if recursive else "[!.]*"
|
||||||
image_paths = sorted([p for p in data.glob(glob) if p.suffix.lower() in allowed_exts])
|
image_paths = sorted([p for p in data.glob(glob_str) if p.suffix.lower() in allowed_exts])
|
||||||
return image_paths
|
return image_paths
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user