viewer panels update (websocket and hide images) (#620)

websocket update
This commit is contained in:
Ethan Weber authored and GitHub committed 2022-10-02 18:41:37 -07:00
1 parent 37907698f2
commit 8bbf578f10
7 files changed
+42 -61

No files matched your search

View File
Whitespace-only changes.
-23
View File
@@ -1,23 +0,0 @@
"""
Test communications with the viewer.
"""
import time
from nerfstudio.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(websocket_port, zmq_port=zmq_port, log_filename=None)
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.")