mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-20 14:45:38 +08:00
Clickable viewer deployment (#308)
* first commit for clickable web viewer * pylint ignore * functional clickable viewer with updated docs * fixed logging
This commit is contained in:
1 parent
d6b3eccd9c
commit
2cca012ad8
9 files changed
+181
-68
No files matched your search
@@ -0,0 +1,23 @@
|
||||
"""
|
||||
Test communications with the viewer.
|
||||
"""
|
||||
|
||||
import time
|
||||
|
||||
from nerfactory.viewer.server.subprocess import run_viewer_bridge_server_as_subprocess
|
||||
|
||||
|
||||
def test_run_subprocess():
|
||||
"""Test running the viewer bridge server as a subprocess."""
|
||||
zmq_port = 6000 + 10 # don't use the default ports to avoid conflicting with current training jobs
|
||||
websocket_port = 7007 + 10
|
||||
print("Starting the viewer bridge server as a subprocess.")
|
||||
run_viewer_bridge_server_as_subprocess(zmq_port, websocket_port)
|
||||
print("Started the viewer bridge server as a subprocess.")
|
||||
# do something will the viewer bridge server runs
|
||||
time.sleep(1)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
test_run_subprocess()
|
||||
print("Tests passed.")
|
||||
Reference in new issue
Block a user