added logic for printing things (#309)

* added logic for printing things

* dynamic viewer url
This commit is contained in:
evonneng authored and GitHub committed 2022-08-30 11:04:42 -07:00
1 parent 7a084eaf62
commit e96f7c0617
4 files changed
+45 -17

No files matched your search

+9 -1
View File
@@ -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):