假设我有内容检查点:
checkpoint
├── model.ckpt-240000.data-00000-of-00001
├── model.ckpt-240000.index
└── model.ckpt-240000.meta
是否可以在张量板上查看检查点的内容,还是只能转换为.pb
格式?
答案 0 :(得分:2)
看起来可以这样完成:
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/