mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-02 13:59:10 +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
@@ -334,6 +334,7 @@ class PipelineConfig(InstantiateConfig):
|
||||
class ViewerConfig(PrintableConfig):
|
||||
"""Configuration for viewer instantiation"""
|
||||
|
||||
log_filename: Optional[Path] = None
|
||||
enable: bool = False
|
||||
zmq_url: str = "tcp://127.0.0.1:6000"
|
||||
launch_bridge_server: bool = True
|
||||
@@ -403,3 +404,5 @@ class Config(PrintableConfig):
|
||||
self.trainer.model_dir = self.base_dir / self.trainer.relative_model_dir
|
||||
for curr_writer in self.logging.writer:
|
||||
curr_writer.log_dir = self.base_dir / curr_writer.relative_log_dir
|
||||
if self.viewer.log_filename is None:
|
||||
self.viewer.log_filename = self.base_dir / "viewer_log_filename.txt"
|
||||
Reference in new issue
Block a user