79644708

Date: 2025-05-29 22:57:44
Score: 0.5
Natty:
Report link

sorry ignore previous code, this one should work in python to load tensorboard.

def run_tensorboard(logdir_absolute: str, port: int = 6007):
    import subprocess
    import threading

    def launch_tb():
        command = [
            "tensorboard",
            f"--logdir={logdir_absolute}",
            f"--port={port}"
        ]
        subprocess.Popen(command)

    tb_thread = threading.Thread(target=launch_tb, daemon=True)
    tb_thread.start()
    print(f"[INFO] TensorBoard started on http://localhost:{port}")
run_tensorboard("your runs folder full path", port=6007)
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ersi Zhao