mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-04 14:58:55 +08:00
Add colormaps to logs
This commit is contained in:
1 parent
c164fd5207
commit
cf9c557b7b
6 files changed
+39
-6
No files matched your search
@@ -89,13 +89,13 @@ class TensorboardWriter(Writer):
|
||||
self.tb_writer = SummaryWriter(log_dir=self.save_dir)
|
||||
|
||||
def write_image(
|
||||
self, name: str, x: TensorType["H", "W", 3], step: int, group: str = None, prefix: str = None
|
||||
self, name: str, x: TensorType["H", "W", "C"], step: int, group: str = None, prefix: str = None
|
||||
) -> None:
|
||||
"""_summary_
|
||||
|
||||
Args:
|
||||
name (str): data identifier
|
||||
x (TensorType["H", "W", 3]): rendered image to write
|
||||
x (TensorType["H", "W", "C"]): rendered image to write
|
||||
"""
|
||||
x = to8b(x)
|
||||
tensorboard_name = get_tensorboard_name(name, group=group, prefix=prefix)
|
||||
|
||||
Reference in new issue
Block a user