mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-22 23:55:36 +08:00
Migrate to viser viewer (#2515)
* fix jittering in markdown in viewer beta
* Revert "fix jittering in markdown in viewer beta"
This reverts commit 70ade42e46.
* Migrate to viser viewer
* Fix docs
* print correctly formatted url in banner for viewer beta
* add deprecation warnings to viewer_elements.py
* fix export string scientific notation bug, change .5 to 2.0 sec transition time
---------
Co-authored-by: Justin Kerr <justin.g.kerr@gmail.com>
This commit is contained in:
1 parent
ca9e6c1294
commit
451a70c1f3
92 files changed
+133
-124
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 the viewer or beta viewer is enabled and only run on main process"""
|
||||
"""Decorator: check if the viewer or legacy viewer is enabled and only run on main process"""
|
||||
|
||||
def wrapper(self, *args, **kwargs):
|
||||
ret = None
|
||||
if (self.config.is_viewer_enabled() or self.config.is_viewer_beta_enabled()) and comms.is_main_process():
|
||||
if (self.config.is_viewer_enabled() or self.config.is_viewer_legacy_enabled()) and comms.is_main_process():
|
||||
ret = func(self, *args, **kwargs)
|
||||
return ret
|
||||
|
||||
|
||||
Reference in new issue
Block a user