如何在远程服务器上运行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:
- 当我进入计算机时,我使用该选项
-L
将远程服务器的端口6006
转移到端口16006 $我的机器的c $ c>(例如):
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
.
- 然后您可以使用标准的<$ c $在远程计算机上启动tensorboard。 c> tensorboard --logdir日志,其默认值为
6006
port - 在本地计算机上,转到 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屋!
查看全文