使用Google Colab的TensorFlow 1中的TensorBoard

问题描述 投票:0回答:1

我想在Google Colab的TensorFlow 1中使用TensorBoard。我发现的教程似乎在TensorFlow 2上,建议似乎在TensorFlow 1中不起作用。

似乎我需要一些等效于tf.summary.create_file_writer和tf.summary.scalar的文件。我已经尝试过tf.contrib.summary.create_file_writer和tf.contrib.summary.scalar,但是这些似乎不起作用。

这是我的问题的重述:

https://colab.research.google.com/drive/1M3CL0oasd8pCjXLaaHl15I1yz-LUXNhq

python tensorflow jupyter-notebook google-colaboratory tensorboard
1个回答
0
投票
!wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
!unzip ngrok-stable-linux-amd64.zip

get_ipython().system_raw('tensorboard --logdir /content/trainingdata/objectdetection/ckpt_output/trainingImatges/ --host 0.0.0.0 --port 6006 &')

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'])"

这将为您创建的日志文件提供一个张量板。它与TF1.13一起使用]

© www.soinside.com 2019 - 2024. All rights reserved.