mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-05 15:28:49 +08:00
wip before I copy linning's stuff in
This commit is contained in:
1 parent
2158946580
commit
ba5ce12d4d
3 files changed
+5
-5
No files matched your search
@@ -17,7 +17,7 @@
|
|||||||
import json
|
import json
|
||||||
import xml.etree.ElementTree as ET
|
import xml.etree.ElementTree as ET
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Dict, List
|
from typing import Dict, List, Optional
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
|
|||||||
@@ -61,12 +61,12 @@ def list_images(data: Path) -> List[Path]:
|
|||||||
"""Lists all supported images in a directory
|
"""Lists all supported images in a directory
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
data: Path to the directory of images.
|
data: Path to the directory of images. Nested folders are searched as well.
|
||||||
Returns:
|
Returns:
|
||||||
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
|
||||||
image_paths = sorted([p for p in data.glob("[!.]*") if p.suffix.lower() in allowed_exts])
|
image_paths = sorted([p for p in data.glob("**/[!.]*") if p.suffix.lower() in allowed_exts])
|
||||||
return image_paths
|
return image_paths
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import sys
|
|||||||
import zipfile
|
import zipfile
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Union
|
from typing import Optional, Union
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import tyro
|
import tyro
|
||||||
@@ -28,11 +28,11 @@ from typing_extensions import Annotated
|
|||||||
|
|
||||||
from nerfstudio.process_data import (
|
from nerfstudio.process_data import (
|
||||||
metashape_utils,
|
metashape_utils,
|
||||||
|
odm_utils,
|
||||||
polycam_utils,
|
polycam_utils,
|
||||||
process_data_utils,
|
process_data_utils,
|
||||||
realitycapture_utils,
|
realitycapture_utils,
|
||||||
record3d_utils,
|
record3d_utils,
|
||||||
odm_utils,
|
|
||||||
)
|
)
|
||||||
from nerfstudio.process_data.colmap_converter_to_nerfstudio_dataset import BaseConverterToNerfstudioDataset
|
from nerfstudio.process_data.colmap_converter_to_nerfstudio_dataset import BaseConverterToNerfstudioDataset
|
||||||
from nerfstudio.process_data.images_to_nerfstudio_dataset import ImagesToNerfstudioDataset
|
from nerfstudio.process_data.images_to_nerfstudio_dataset import ImagesToNerfstudioDataset
|
||||||
|
|||||||
Reference in new issue
Block a user