mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-30 12:59:40 +08:00
move outputs to config (#545)
This commit is contained in:
1 parent
99d0f43ff2
commit
399e5cac6d
1 file changed
+3
-1
@@ -232,6 +232,8 @@ from nerfactory.pipelines.base import VanillaPipelineConfig
|
|||||||
class Config(PrintableConfig):
|
class Config(PrintableConfig):
|
||||||
"""Full config contents"""
|
"""Full config contents"""
|
||||||
|
|
||||||
|
output_dir: Path = Path("outputs")
|
||||||
|
"""relative or absolute output directory to save all checkpoints and logging"""
|
||||||
method_name: Optional[str] = None
|
method_name: Optional[str] = None
|
||||||
"""Method name. Required to set in python or via cli"""
|
"""Method name. Required to set in python or via cli"""
|
||||||
experiment_name: Optional[str] = None
|
experiment_name: Optional[str] = None
|
||||||
@@ -262,7 +264,7 @@ class Config(PrintableConfig):
|
|||||||
# check the experiment and method names
|
# check the experiment and method names
|
||||||
assert self.method_name is not None, "Please set method name in config or via the cli"
|
assert self.method_name is not None, "Please set method name in config or via the cli"
|
||||||
self.set_experiment_name()
|
self.set_experiment_name()
|
||||||
return Path(f"outputs/{self.experiment_name}/{self.method_name}/{self.timestamp}")
|
return Path(f"{self.output_dir}/{self.experiment_name}/{self.method_name}/{self.timestamp}")
|
||||||
|
|
||||||
def get_checkpoint_dir(self) -> Path:
|
def get_checkpoint_dir(self) -> Path:
|
||||||
"""Retrieve the checkpoint directory"""
|
"""Retrieve the checkpoint directory"""
|
||||||
|
|||||||
Reference in new issue
Block a user