如何在远程服务器上运行 Tensorboard? [英] How can I run Tensorboard on a remote server?
本文介绍了如何在远程服务器上运行 Tensorboard?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是 Tensorflow 的新手,将从我正在做的事情的一些可视化中受益匪浅.我知道 Tensorboard 是一个有用的可视化工具,但我如何在我的远程 Ubuntu 机器上运行它?
I'm new to Tensorflow and would greatly benefit from some visualizations of what I'm doing. I understand that Tensorboard is a useful visualization tool, but how do I run it on my remote Ubuntu machine?
推荐答案
为了避免使远程服务器接受本地外部 IP 的问题,我采取了以下措施:
Here is what I do to avoid the issues of making the remote server accept your local external IP:
- 当我ssh进入机器时,我使用选项
-L
将远程服务器的端口6006
转入端口16006
我的机器(例如):<代码>ssh -L 16006:127.0.0.1:6006 olivier@my_server_ip
- when I ssh into the machine, I use the option
-L
to transfer the port6006
of the remote server into the port16006
of my machine (for instance):ssh -L 16006:127.0.0.1:6006 olivier@my_server_ip
它的作用是将服务器端口 6006
上的所有内容(在 127.0.0.1:6006
中)转发到我的16006
端口上的机器.
What it does is that everything on the port 6006
of the server (in 127.0.0.1:6006
) will be forwarded to my machine on the port 16006
.
- 然后,您可以使用标准
tensorboard --logdir log
和默认的6006
port 在远程机器上启动 tensorboard - 在您的本地机器上,转到 http://127.0.0.1:16006 并享受远程 TensorBoard.
- You can then launch tensorboard on the remote machine using a standard
tensorboard --logdir log
with the default6006
port - On your local machine, go to http://127.0.0.1:16006 and enjoy your remote TensorBoard.
这篇关于如何在远程服务器上运行 Tensorboard?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文