【发布时间】:2018-07-01 15:01:49
【问题描述】:
我的 event_file 如下:
/path/to/event_file/events.out.tfevents.1516382034.myremotehost.edu
然后我尝试使用以下命令启动 tensorord:
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:
这适用于 Ubuntu 16 上的 Chrome 和 Firefox。Safari 会加载 tensordboard 页面,但我看不到图表。
【问题讨论】: