Skip to content

Download PNG is totally blank using tensorboard 1.5.0 #924

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ShangjinTang opened this issue Jan 31, 2018 · 9 comments
Closed

Download PNG is totally blank using tensorboard 1.5.0 #924

ShangjinTang opened this issue Jan 31, 2018 · 9 comments

Comments

@ShangjinTang
Copy link

Issue 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

  1. 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.

  1. 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()
  1. Run tensorboard --logdir=C:\tmp, then open tensorboard (port 6006) in Chrome browser.

  2. Click Download PNG on the left sidebar of TensorBoard - 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
  1. Open the image, but the image shows nothing invalid. The image is totally blank.

Recovery Steps

  1. Download "tensorflow_tensorboard-0.4.0-py3-none-any.whl" on PYPI

  2. 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.

  3. Use the same log in Issue Step 2. Run tensorboard --logdir=C:\tmp, then open tensorboard (port 6006) in Chrome browser.

  4. Click Download PNG on the left sidebar of TensorBoard - 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
  1. Open the image, the image shows graph successfully.
@ShangjinTang ShangjinTang changed the title Image issue (totally blank) of "Download PNG" with tensorboard 1.5.0. Download PNG is totally blank using tensorboard 1.5.0. Jan 31, 2018
@ShangjinTang ShangjinTang changed the title Download PNG is totally blank using tensorboard 1.5.0. Download PNG is totally blank using tensorboard 1.5.0 Jan 31, 2018
@ShangjinTang
Copy link
Author

The Graphs URLs are also different and related to image file names, which might help this issue:

  • tensorboard 1.5.0 GRAPHS URL : localhost:6006/#graphs&run=.
  • tensorboard 0.4.0 GRAPHS URL : localhost:6006/#graphs&run=D%5C.

@nfelt
Copy link
Contributor

nfelt commented Feb 1, 2018

Thanks for the report. I wonder if the URL issue might be a red herring - PR #265 which added support for passing windows drive names as logdirs without having the drive interpreted as a run name. So in 1.5.0 --logdir=C:\tmp will result in a run using the directory C:\tmp with the default run name ., while in 0.4.0 --logdir=C:\tmp would result in a run using the directory \tmp on the current drive, with the run renamed to C. The 0.4.0 filename's run=D%5C.png would correspond to a run named D\ which looks a lot like a drive name, maybe - were you running TensorBoard from D drive?

I'll see if I can repro this on non-windows.

@nfelt
Copy link
Contributor

nfelt commented Feb 1, 2018

Yep, I can definitely reproduce this! We will investigate.

@nfelt
Copy link
Contributor

nfelt commented Feb 1, 2018

Actually, this has the same root cause as the minimap breakage fixed by #899, so #899 should also have fixed this issue. If you install tb-nightly with the latest nightly build of TensorBoard it should have the fix already. We'll be patching some fixes into a 1.5.1 bugfix release soon and I'll make sure this fix makes it in.

@nfelt nfelt removed the os:windows label Feb 1, 2018
@ShangjinTang
Copy link
Author

@nfelt Thanks for your feedback. I'll update to tensorboard 1.5.1 after it's released.

@nfelt
Copy link
Contributor

nfelt commented Feb 8, 2018

Closing this out since TensorBoard 1.5.1 has now been released and should fix this issue.

@nfelt nfelt closed this as completed Feb 8, 2018
@nfelt nfelt self-assigned this Feb 8, 2018
@zkailinzhang
Copy link

ubtuntu16.04, i use docker tensorflow-gpu 1.12.0, in docker use tensorboard , open chrome https://local:6006, show graph, but i push bottom download png, graph_run=.png also is blank, how it why

@MrChenFeng
Copy link

Everything is okay with my Tensorboard, but when I try to download PNG, the downloaded file seems to be broken?

@udithhaputhanthri
Copy link

udithhaputhanthri commented May 29, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants