mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-01 13:28:59 +08:00
Kill the training script if the viewer ports are conflicting with other processes (#352)
kills program if conflicting ports for the viewer
This commit is contained in:
1 parent
512a51f714
commit
7aa6ca9948
4 files changed
+41
-4
No files matched your search
@@ -195,7 +195,12 @@ class VisualizerState:
|
||||
# start the viewer bridge server
|
||||
zmq_port = int(self.config.zmq_url.split(":")[-1])
|
||||
websocket_port = self.config.websocket_port
|
||||
run_viewer_bridge_server_as_subprocess(zmq_port, websocket_port)
|
||||
self.config.log_filename.parent.mkdir(exist_ok=True)
|
||||
run_viewer_bridge_server_as_subprocess(
|
||||
zmq_port, websocket_port, log_filename=str(self.config.log_filename)
|
||||
)
|
||||
# TODO(ethan): move this into the writer such that it's at the bottom
|
||||
# of the logging stack and easy to see and click
|
||||
# TODO(ethan): log the output of the viewer bridge server in a file where the training logs go
|
||||
print("\n")
|
||||
self.viewer_url = (
|
||||
|
||||
Reference in new issue
Block a user