【发布时间】:2020-05-08 17:04:42
【问题描述】:
我正在尝试在 Google Colab 上制作自定义对象检测模型。我在启动 Tensorboard 时遇到问题。就在开始培训之前,我为 Ngrok 运行了以下命令。
!wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
!unzip ngrok-stable-linux-amd64.zip
LOG_DIR = '/tmp/log'
get_ipython().system_raw(
'tensorboard --logdir {} --host 0.0.0.0 --port 6006 &'
.format(LOG_DIR)
)
get_ipython().system_raw('./ngrok http 6006 &')
!curl -s http://localhost:4040/api/tunnels | python3 -c \
"import sys, json; print(json.load(sys.stdin)['tunnels'][0]['public_url'])"
并得到带有this 之类的 URL 的输出。
然后我开始训练,然后我去了 URL。但是那里没有找到数据。谁能告诉我哪里出错了?
还有一个问题...我发现要停止我需要使用Ctrl+C 的培训。但是如何在 Colab Notebook 上发送Ctrl+C?
提前致谢。
问候。
【问题讨论】:
标签: tensorflow machine-learning google-colaboratory tensorboard ngrok