mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-01 21:39:06 +08:00
Install completions for entrypoints, misc config tweaks (#569)
* Install completions for entrypoints, misc config tweaks * Bump dcargs
This commit is contained in:
1 parent
7c1734fe5c
commit
7f38490ec0
8 files changed
+65
-53
No files matched your search
@@ -240,7 +240,7 @@ class Config(PrintableConfig):
|
||||
"""Method name. Required to set in python or via cli"""
|
||||
experiment_name: Optional[str] = None
|
||||
"""Experiment name. If None, will automatically be set to dataset name"""
|
||||
timestamp: str = datetime.now().strftime("%Y-%m-%d_%H%M%S")
|
||||
timestamp: str = "{timestamp}"
|
||||
"""Experiment timestamp."""
|
||||
machine: MachineConfig = MachineConfig()
|
||||
logging: LoggingConfig = LoggingConfig()
|
||||
@@ -256,6 +256,10 @@ class Config(PrintableConfig):
|
||||
}
|
||||
)
|
||||
|
||||
def set_timestamp(self) -> None:
|
||||
"""Dynamically set the experiment timestamp"""
|
||||
self.timestamp = datetime.now().strftime("%Y-%m-%d_%H%M%S")
|
||||
|
||||
def set_experiment_name(self) -> None:
|
||||
"""Dynamically set the experiment name"""
|
||||
if self.experiment_name is None:
|
||||
|
||||
Reference in new issue
Block a user