Skip to content

Commit

Permalink
Merge branch 'sd3-flux.1' of https://github.com/bmaltais/kohya_ss int…
Browse files Browse the repository at this point in the history
…o sd3-flux.1
  • Loading branch information
bmaltais committed Oct 12, 2024
2 parents 7ae14d5 + d992dac commit 09c4fbf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kohya_gui/class_tensorboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

class TensorboardManager:
DEFAULT_TENSORBOARD_PORT = 6006
DEFAULT_TENSORBOARD_HOST = "0.0.0.0"

def __init__(self, logging_dir, headless: bool = False, wait_time=5):
self.logging_dir = logging_dir
Expand All @@ -29,6 +30,9 @@ def __init__(self, logging_dir, headless: bool = False, wait_time=5):
self.tensorboard_port = os.environ.get(
"TENSORBOARD_PORT", self.DEFAULT_TENSORBOARD_PORT
)
self.tensorboard_host = os.environ.get(
"TENSORBOARD_HOST", self.DEFAULT_TENSORBOARD_HOST
)
self.log = setup_logging()
self.thread = None
self.stop_event = Event()
Expand Down Expand Up @@ -64,7 +68,7 @@ def start_tensorboard(self, logging_dir=None):
"--logdir",
logging_dir,
"--host",
"0.0.0.0",
self.tensorboard_host,
"--port",
str(self.tensorboard_port),
]
Expand Down

0 comments on commit 09c4fbf

Please sign in to comment.