Unable to visualize Inception v3 model in TensorBoard with TensorFlow 0.7.1 -


i'm attempting visualize google's inception v3 model using tensorboard in tensorflow 0.7.1 , unable so. tensorboard graph tab stalls statement

data : reading graph.pbtxt

data : reading graph.pbtxt

i downloaded un-tarred inception v3 model. graph protobuffer in /tmp/imagenet/classify_image_graph_def.pb.

here's code dump model:

import os import os.path import tensorflow tf tensorflow.python.platform import gfile  inception_log_dir = '/tmp/inception_v3_log'  if not os.path.exists(inception_log_dir):     os.makedirs(inception_log_dir) tf.session() sess:     model_filename = '/tmp/imagenet/classify_image_graph_def.pb'     gfile.fastgfile(model_filename, 'rb') f:         graph_def = tf.graphdef()         graph_def.parsefromstring(f.read())         _ = tf.import_graph_def(graph_def, name='')     writer = tf.train.summarywriter(inception_log_dir, graph_def)     writer.close() 

this dumps 91 mb file called events.out.tfevents.1456423256.[hostname] (same size graph protobuffer) seems graph in there somewhere.

i ran tensorboard follows:

tensorboard --logdir /tmp/inception_v3_log 

which results in aforementioned hung loading bar on graph page.

the chrome javascript console yields error:

uncaught typeerror: cannot read property '0' of undefined

which assume related fact graph missing.

i've tried chrome 48.0.2564.116 (64-bit) on os x 10.11.3 both tensorflow 0.7.1 python 3 built using bazel , tensorflow 0.7.1 python 2 installed via pip exact same results.

i verified can visualize graph generated mnist_with_summaries example, issue inception model.

daniel,

i don't know protobuffer stuff mention, think may want uninstall protobuf , reinstall tensorflow.

after upgrade (on ubuntu) tensorflow v0.6 v0.7.1 found following post when had trouble launching tensorboard.

i think there problem protobuf. talked here: https://github.com/tensorflow/tensorflow/issues/1134#issuecomment-185279000

i ended uninstalling protobuf , reinstalling tensorboard. can launch board , view graph. luck! :)

don


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -