使用Google Colab的TensorFlow 1中的TensorBoard

约瑟夫·科南

我想在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

55597
!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

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

在Google Colab中运行TensorFlow测试

Tensorboard 未在 google colab 中批量更新

将TensorFlow检查点保存在Google Colab中

Tensorflow 2.0 Beta GPU在Jupyter Notebook中运行,但不在Google Colab中运行

尝试在Google Colab中使用Tensorboard时出错

在Google Colab上使用TensorFlow 2.0时出错

如何从Google Colab保存完整的Tensorflow模型

无法从Google Colab保存Tensorflow模型

如何修复:AttributeError:JupyterNotebook中的模块“ tensorflow”没有属性“ optimizers”(使用colab.research)

Tensorflow 對象檢測 API 需要永遠安裝在 Google Colab 中並失敗

在 google colab 上的 google drive 中的视频上使用 openpose

Google Colab中的ScispaCy

如何在Google Colab上恢复默认的Tensorflow版本

Google Colab上的Tensorflow-Keras可再现性问题

如何在Google Colab上安装Tensorflow的先前版本?

Google Colab(tensorflow)一个监督器

我可以将TensorBoard与Google Colab一起使用吗?

Google Colab在使用Tensorflow 2.0批处理数据集时未加载图像文件

Google Colab Tensorflow模型未在时代中使用所有示例

如何使用 google colab 从 TensorFlow 代码生成图形并对其进行可视化?

使用前缀“!”在 Google Colab 中启动进程 与“subprocess.Popen(..)”

使用Google Colab在Pytorch中运行数据加载器

使用PIL库无法在Google colab中显示图片

使用Python时如何在Google Colab中引用文件?

使用imshow()时图像未显示在Google Colab中

如何使用Google Colab在Jupyter Notebook中显示GIF?

使用 OpenCV 在 Google Colab 中显示流图像

使用 google colab 同时更改代码中的相同单词

如何在不使用Tensorboard的情况下在Tensorflow中绘制损耗曲线?