mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-19 22:25:44 +08:00
added logic for printing things (#309)
* added logic for printing things * dynamic viewer url
This commit is contained in:
1 parent
7a084eaf62
commit
e96f7c0617
4 files changed
+45
-17
No files matched your search
@@ -17,7 +17,7 @@
|
||||
from dataclasses import dataclass
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, Literal, Optional, Tuple, Type
|
||||
from typing import Any, Dict, List, Literal, Optional, Tuple, Type
|
||||
|
||||
import torch
|
||||
|
||||
@@ -110,6 +110,14 @@ class LocalWriterConfig(InstantiateConfig):
|
||||
relative_log_dir: Path = Path("./")
|
||||
log_dir: Optional[Path] = None # full log dir path to be dynamically set
|
||||
|
||||
def setup(self, banner_messages: Optional[List[str]] = None, **kwargs) -> Any:
|
||||
"""Instantiate local writer
|
||||
|
||||
Args:
|
||||
banner_messages: List of strings that always print at the bottom of screen. Defaults to None.
|
||||
"""
|
||||
return self._target(self, banner_messages=banner_messages, **kwargs)
|
||||
|
||||
|
||||
@dataclass
|
||||
class LoggingConfig(PrintableConfig):
|
||||
|
||||
Reference in new issue
Block a user