Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tensorflow: how to view checkpoint in tensorboard?

Suppose I have checkpoint with content:

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

Is it possible to view content of checkpoint in tensorboard or it only possible converting to .pb format?

like image 489
mrgloom Avatar asked Dec 08 '22 12:12

mrgloom


1 Answers

Looks like it can be done like:

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)

And then tensorboard --logdir checkpoint_log_dir/faceboxes/

like image 135
mrgloom Avatar answered Dec 10 '22 02:12

mrgloom