我无法在浏览器中启动tensorboard(safari和chrome)

时间:2018-01-22 21:46:37

标签: tensorflow tensorboard

我的event_file如下:

/path/to/event_file/events.out.tfevents.1516382034.myremotehost.edu

然后我尝试使用此命令启动tensorbord:

tensorboard --logdir=/path/to/event_file --port=6006

它给了我以下网址:

http://myremotehost.edu:6006

但很明显地看着

的结果
 netstat -l / -a / -t / -u / -n

端口6006未打开,因此我尝试使用以下方法在localhost上重定向端口6006:

ssh -L 6006:localhost:6006 myremotehost.edu -N

查看netstat的结果,它说端口6006正在侦听。然后我尝试使用以下方法再次启动tensorboard:

tensorboard --logdir=/path/to/event_file --port=6006

它说:

TensorBoard attempted to bind to port 6006, but it was already in use
我做错了什么?我将不胜感激任何帮助。 我也尝试过:

tensorboard --logdir=/path/to/event_file --host=localhost --port=6006

还有:

tensorboard --logdir=/path/to/event_file --host=myremotehost.edu --port=6006

没有成功。我也尝试了不同的端口号,也没有成功。

编辑:

它不允许我回答我自己的问题,因此我将其作为编辑发布:

我的问题是,我首先使用这个ssh到myremotehost:

ssh -L localhost:44888:localhost:55888 myusername@myremotehost.edu

并且该终端内部试图使用此方法启动张量板:

tensorboard --logdir = / path / to / event_file --host = myremotehost.edu --port = 6006

显然没有用。解决方案是,我不需要以常规方式ssh到myremorehost,而是我需要这样做:

1)   ssh -L localhost:4040:localhost:6006

2)   ssh -D 8080 myusername@myremotehost.edu

3)   go to the network setting in your browser and change the proxy setting as below:

Network Setting

这适用于Ubuntu 16上的Chrome和Firefox.Safari加载了tensordboard页面,但我看不到图表。

1 个答案:

答案 0 :(得分:1)

在Safari中,您无需输入以下内容: http://myremotehost.edu:6006

相反,在启动张量板后--logdir = path / to / logdir 只需将其放在您的Safari浏览器中 http://localhost:6006