Download PNG is totally blank using tensorboard 1.5.0
See original GitHub issueIssue description
Image generated on “Download PNG” is totally blank with tensorboard 1.5.0.
Image generated on “Download PNG” is fine after replaced tensorboard 1.5.0 with tensorboard 0.4.0.
Environment
- PC 1 (GPU version): Windows 10 + Python 3.6.3 + TensorFlow-GPU 1.5.0 + Tensorboard 1.5.0 + CUDA 9.0 + cuDNN 7.0.5
- PC 2 (CPU version): Windows 7 + Python 3.6.3 + TensorFlow 1.5.0 + Tensorboard 1.5.0
- PC 3 (CPU version): Windows 7 + Python 3.6.3 + TensorFlow 1.5.0 + Tensorboard 1.5.0
Not tested on Linux yet.
Issue Steps
- Install python 3.6.3, tensorflow 1.5.0 (GPU version or CPU version).
Dependency package tensorboard 1.5.0 will be installed with tensorflow 1.5.0.
- Generate a log, such as the code below:
import tensorflow as tf
sess = tf.InteractiveSession()
with tf.name_scope('a'):
a = tf.Variable(4, dtype=tf.int32)
with tf.name_scope('b'):
b = tf.Variable(3, dtype=tf.int32)
with tf.name_scope('c'):
c = tf.multiply(a, b)
tf.summary.scalar('output', c)
merged = tf.summary.merge_all()
summary, c_val = sess.run([merged, c], feed_dict={a: 4, b: 5})
writer = tf.summary.FileWriter(r"C:\tmp", graph=sess.graph)
writer.add_summary(summary)
writer.close()
-
Run
tensorboard --logdir=C:\tmp
, then open tensorboard (port 6006) in Chrome browser. -
Click
Download PNG
on the left sidebar ofTensorBoard
-GRAPHS
.
- File name:
graph_large_attrs_key=_too_large_attrs&limit_attr_size=1024&run=.png
- File size:
3.06 KB
- File pixel: 495 * 286
- Open the image, but the image shows nothing invalid. The image is totally blank.
Recovery Steps
-
Download “tensorflow_tensorboard-0.4.0-py3-none-any.whl” on PYPI
-
pip3 install tensorflow_tensorboard-0.4.0-py3-none-any.whl
. After installation tensorboard 0.4.0, the tensorflow version is still 1.5.0. -
Use the same log in Issue Step 2. Run
tensorboard --logdir=C:\tmp
, then open tensorboard (port 6006) in Chrome browser. -
Click
Download PNG
on the left sidebar ofTensorBoard
-GRAPHS
.
- File name:
graph_large_attrs_key=_too_large_attrs&limit_attr_size=1024&run=D%5C.png
- File size:
11.9 KB
- File pixel:
495 * 286
- Open the image, the image shows graph successfully.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9
Top GitHub Comments
Everything is okay with my Tensorboard, but when I try to download PNG, the downloaded file seems to be broken?
I think I also have the same problem. In the tensorboard on collab, download PNG gives “Failed- Forbidden” message. Is there any way to download the .png image.