mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-11 02:24:38 +08:00
Update nerfstudio data defaults (#1701)
This commit is contained in:
parent
835a0151f2
commit
2e74462c32
@ -46,7 +46,7 @@ class NerfstudioDataParserConfig(DataParserConfig):
|
||||
|
||||
_target: Type = field(default_factory=lambda: Nerfstudio)
|
||||
"""target class to instantiate"""
|
||||
data: Path = Path("data/nerfstudio/poster")
|
||||
data: Path = Path()
|
||||
"""Directory or explicit json file path specifying location of data."""
|
||||
scale_factor: float = 1.0
|
||||
"""How much to scale the camera origins by."""
|
||||
@ -76,6 +76,8 @@ class Nerfstudio(DataParser):
|
||||
def _generate_dataparser_outputs(self, split="train"):
|
||||
# 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":
|
||||
meta = load_from_json(self.config.data)
|
||||
data_dir = self.config.data.parent
|
||||
|
||||
Loading…
Reference in New Issue
Block a user