【问题标题】:Tensorflow: how to view checkpoint in tensorboard?Tensorflow:如何在张量板上查看检查点?
【发布时间】:2019-03-14 10:09:20
【问题描述】:

假设我有包含内容的检查点:

checkpoint
├── model.ckpt-240000.data-00000-of-00001
├── model.ckpt-240000.index
└── model.ckpt-240000.meta

是否可以在tensorboard中查看检查点的内容还是只能转换为.pb格式?

【问题讨论】:

  • AFAIK TensorBoard 读取摘要,而不是实际的检查点。
  • @E_net4 也可以显示图表。

标签: python tensorflow deep-learning tensorboard


【解决方案1】:

看起来可以这样做:

import tensorflow as tf

g = tf.Graph()

with g.as_default() as g:
    tf.train.import_meta_graph('./checkpoint/model.ckpt-240000.meta')

with tf.Session(graph=g) as sess:
    file_writer = tf.summary.FileWriter(logdir='checkpoint_log_dir/faceboxes', graph=g)

然后tensorboard --logdir checkpoint_log_dir/faceboxes/

【讨论】:

    猜你喜欢
    • 2018-01-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-16
    • 1970-01-01
    • 2018-05-23
    相关资源
    最近更新 更多