mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-21 15:15:43 +08:00
Basic viser frontend (#1973)
* Use viser frontend * Rendering but poses incorrect * Fix cameras
This commit is contained in:
1 parent
d413ca4204
commit
efd83abb6d
8 files changed
+522
-5
No files matched your search
@@ -50,11 +50,11 @@ def check_profiler_enabled(func: Callable) -> Callable:
|
||||
|
||||
|
||||
def check_viewer_enabled(func: Callable) -> Callable:
|
||||
"""Decorator: check if viewer is enabled and only run on main process"""
|
||||
"""Decorator: check if the viewer or beta viewer is enabled and only run on main process"""
|
||||
|
||||
def wrapper(self, *args, **kwargs):
|
||||
ret = None
|
||||
if self.config.is_viewer_enabled() and comms.is_main_process():
|
||||
if (self.config.is_viewer_beta_enabled() or self.config.is_viewer_beta_enabled()) and comms.is_main_process():
|
||||
ret = func(self, *args, **kwargs)
|
||||
return ret
|
||||
|
||||
|
||||
Reference in new issue
Block a user