mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-21 23:25:39 +08:00
[wip] logging separated s.t. only one is enabled (#458)
* updated viewer/writer configs * allow viewer + tb/wandb but with errors; moved localwriter to its own thing * nits and all * update test
This commit is contained in:
1 parent
a79ef3fb11
commit
4e7ef375a2
11 files changed
+200
-166
No files matched your search
@@ -49,12 +49,12 @@ def check_profiler_enabled(func: Callable) -> Callable:
|
||||
return wrapper
|
||||
|
||||
|
||||
def check_visualizer_enabled(func: Callable) -> Callable:
|
||||
"""Decorator: check if visualizer is enabled"""
|
||||
def check_viewer_enabled(func: Callable) -> Callable:
|
||||
"""Decorator: check if viewer is enabled"""
|
||||
|
||||
def wrapper(self, *args, **kwargs):
|
||||
ret = None
|
||||
if self.vis:
|
||||
if self.config.viewer.enable:
|
||||
ret = func(self, *args, **kwargs)
|
||||
return ret
|
||||
|
||||
|
||||
Reference in new issue
Block a user