Keras: get warnings for tensorboard : summary name is illegal

Created on 13 Mar 2017  路  14Comments  路  Source: keras-team/keras

After I add tensorboard into callbacks, it shows warning of summary name format is illegal. I suspect it could be caused by the keras model summary format.

warnings

INFO:tensorflow:Summary name convolution2d_1_W:0 is illegal; using convolution2d_1_W_0 instead.

code

tensorboard = keras.callbacks.TensorBoard(
    log_dir='tensorboard/esc_example/' + name + '/', 
    write_graph=True,
    histogram_freq=1
)

Most helpful comment

The same issue, sorted out by replacing variable.name with variable.name.replace(':','_')

The summary names do not like :

All 14 comments

Got same problems, when add TensorBoard callback to the example https://github.com/fchollet/keras/blob/master/examples/cifar10_cnn.py

tensorflow (1.0.1)
Keras (2.0.0)

INFO:tensorflow:Summary name conv2d_1/kernel:0 is illegal; using conv2d_1/kernel_0 instead.
INFO:tensorflow:Summary name conv2d_1/kernel:0 is illegal; using conv2d_1/kernel_0 instead.
INFO:tensorflow:Summary name conv2d_1/bias:0 is illegal; using conv2d_1/bias_0 instead.
INFO:tensorflow:Summary name conv2d_1/bias:0 is illegal; using conv2d_1/bias_0 instead.
INFO:tensorflow:Summary name conv2d_2/kernel:0 is illegal; using conv2d_2/kernel_0 instead.
INFO:tensorflow:Summary name conv2d_2/kernel:0 is illegal; using conv2d_2/kernel_0 instead.
INFO:tensorflow:Summary name conv2d_2/bias:0 is illegal; using conv2d_2/bias_0 instead.
INFO:tensorflow:Summary name conv2d_2/bias:0 is illegal; using conv2d_2/bias_0 instead.
INFO:tensorflow:Summary name conv2d_3/kernel:0 is illegal; using conv2d_3/kernel_0 instead.
INFO:tensorflow:Summary name conv2d_3/kernel:0 is illegal; using conv2d_3/kernel_0 instead.
INFO:tensorflow:Summary name conv2d_3/bias:0 is illegal; using conv2d_3/bias_0 instead.
INFO:tensorflow:Summary name conv2d_3/bias:0 is illegal; using conv2d_3/bias_0 instead.
INFO:tensorflow:Summary name conv2d_4/kernel:0 is illegal; using conv2d_4/kernel_0 instead.
INFO:tensorflow:Summary name conv2d_4/kernel:0 is illegal; using conv2d_4/kernel_0 instead.
INFO:tensorflow:Summary name conv2d_4/bias:0 is illegal; using conv2d_4/bias_0 instead.
INFO:tensorflow:Summary name conv2d_4/bias:0 is illegal; using conv2d_4/bias_0 instead.
INFO:tensorflow:Summary name dense_1/kernel:0 is illegal; using dense_1/kernel_0 instead.
INFO:tensorflow:Summary name dense_1/kernel:0 is illegal; using dense_1/kernel_0 instead.
INFO:tensorflow:Summary name dense_1/bias:0 is illegal; using dense_1/bias_0 instead.
INFO:tensorflow:Summary name dense_1/bias:0 is illegal; using dense_1/bias_0 instead.
INFO:tensorflow:Summary name dense_2/kernel:0 is illegal; using dense_2/kernel_0 instead.
INFO:tensorflow:Summary name dense_2/kernel:0 is illegal; using dense_2/kernel_0 instead.
INFO:tensorflow:Summary name dense_2/bias:0 is illegal; using dense_2/bias_0 instead.
INFO:tensorflow:Summary name dense_2/bias:0 is illegal; using dense_2/bias_0 instead.

I have the same issue.

same issue, this error results to the variable's summary can't display.

I have the same issue

Same issue when doing this to track shifts in trainable parameters during training by monitoring their mean value:

for v in tf.trainable_variables():
   vrm = tf.reduce_mean(v)
   tf.summary.scalar(v.name, vrm)

Same issue here

I am having also this issue. But I only get that when I am running on Jupyter notebook. I don't see any of that while running from a .py script

Same issue here

same issues in tensorflow, not only in keras.

The same issue, sorted out by replacing variable.name with variable.name.replace(':','_')

The summary names do not like :

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs, but feel free to re-open a closed issue if needed.

Yes, this is a tensorflow issue nearly certain.

Don't add spaces or other special chars in the summary name. For example instead of:

tf.summary.scalar('classify loss', classify_loss)

do:

tf.summary.scalar('classify_loss', classify_loss)

Closing as this is resolved

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KeironO picture KeironO  路  3Comments

anjishnu picture anjishnu  路  3Comments

nryant picture nryant  路  3Comments

snakeztc picture snakeztc  路  3Comments

LuCeHe picture LuCeHe  路  3Comments