Changing filepaths to Path obj (#303)

changing from using strings to paths
This commit is contained in:
evonneng authored and GitHub committed 2022-08-30 14:23:04 -07:00
1 parent 2d1ba13e12
commit 8f42ce4b34
6 files changed
+70 -92

No files matched your search

+3 -3
View File
@@ -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