mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-01 21:39:06 +08:00
Changing filepaths to Path obj (#303)
changing from using strings to paths
This commit is contained in:
1 parent
2d1ba13e12
commit
8f42ce4b34
6 files changed
+70
-92
No files matched your search
@@ -178,7 +178,7 @@ class BlenderDatasetConfig(InstantiateConfig):
|
||||
"""Blender dataset config"""
|
||||
|
||||
_target: Type = Blender
|
||||
data_directory: str = "data/blender/lego"
|
||||
data_directory: Path = Path("data/blender/lego")
|
||||
scale_factor: float = 1.0
|
||||
alpha_color: str = "white"
|
||||
downscale_factor: int = 1
|
||||
@@ -197,7 +197,7 @@ class FriendsDatasetConfig(InstantiateConfig):
|
||||
"""Friends dataset config"""
|
||||
|
||||
_target: Type = Friends
|
||||
data_directory: str = "data/friends/TBBT-big_living_room"
|
||||
data_directory: Path = Path("data/friends/TBBT-big_living_room")
|
||||
|
||||
|
||||
@dataclass
|
||||
@@ -214,7 +214,7 @@ class MipNerf360DatasetConfig(InstantiateConfig):
|
||||
"""Mipnerf 360 dataset config"""
|
||||
|
||||
_target: Type = Mipnerf360
|
||||
data_directory: str = "data/mipnerf_360/garden"
|
||||
data_directory: Path = Path("data/mipnerf_360/garden")
|
||||
|
||||
|
||||
@dataclass
|
||||
|
||||
Reference in new issue
Block a user