mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-30 12:59:40 +08:00
Update nerfstudio data defaults (#1701)
This commit is contained in:
1 parent
835a0151f2
commit
2e74462c32
1 file changed
+3
-1
@@ -46,7 +46,7 @@ class NerfstudioDataParserConfig(DataParserConfig):
|
|||||||
|
|
||||||
_target: Type = field(default_factory=lambda: Nerfstudio)
|
_target: Type = field(default_factory=lambda: Nerfstudio)
|
||||||
"""target class to instantiate"""
|
"""target class to instantiate"""
|
||||||
data: Path = Path("data/nerfstudio/poster")
|
data: Path = Path()
|
||||||
"""Directory or explicit json file path specifying location of data."""
|
"""Directory or explicit json file path specifying location of data."""
|
||||||
scale_factor: float = 1.0
|
scale_factor: float = 1.0
|
||||||
"""How much to scale the camera origins by."""
|
"""How much to scale the camera origins by."""
|
||||||
@@ -76,6 +76,8 @@ class Nerfstudio(DataParser):
|
|||||||
def _generate_dataparser_outputs(self, split="train"):
|
def _generate_dataparser_outputs(self, split="train"):
|
||||||
# pylint: disable=too-many-statements
|
# pylint: disable=too-many-statements
|
||||||
|
|
||||||
|
assert self.config.data.exists(), f"Data directory {self.config.data} does not exist."
|
||||||
|
|
||||||
if self.config.data.suffix == ".json":
|
if self.config.data.suffix == ".json":
|
||||||
meta = load_from_json(self.config.data)
|
meta = load_from_json(self.config.data)
|
||||||
data_dir = self.config.data.parent
|
data_dir = self.config.data.parent
|
||||||
|
|||||||
Reference in new issue
Block a user