question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

add_text not working with tensorboard > 1.6

See original GitHub issue

First I just want to say this is a fantastic library! Really useful work.

Second, I just tried add_text and found that the results come up blank in tensorboard >= 1.7, but it works with tensorboard 1.6.

I installed the tensorboardX package from source.

I’m not sure if this is a tensorboardX issue or a tensorboard issue, but I thought it was worth bringing up.

Thanks, Tom

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
lanpacommented, May 4, 2018

@teffland @janstria You can replace continue with pass https://github.com/tensorflow/tensorboard/blob/75fd16b9c7957057924d586507fe928ebc2e75ab/tensorboard/plugins/text/text_plugin.py#L285 for a temporary fix (in your pip install). I will rewrite add_text in accordance with the new tensorboard plugin API.

1reaction
TheShadow29commented, Sep 13, 2018

EDIT: I fixed it by using pip install tensorboardX --upgrade. It installed tensorboardX 1.4 and now the text is displayed.

@lanpa I can confirm @rivaud bug report. Here is the code

In [1]: from tensorboardX import SummaryWriter

In [2]: writer = SummaryWriter(log_dir='logs')

In [3]: writer.add_text('MyTag', 'This text should be displayed', 0)

In [4]: writer.close()

Then I do tensorboard --logdir logs. This is the output I get screenshot from 2018-09-13 10-37-14

My package configs are as follows: (output of conda list | grep tensor) tensorboard 1.9.0 py36_0 conda-forge tensorboardX 1.2 <pip> tensorflow 1.9.0 py36_0 conda-forge tensorflow-base 1.9.0 gpu_py36h6ecc378_0
tensorflow-gpu 1.9.0 hf154084_0

Like @rivaud said, I can see the text inside logs/plugins/tensorboard_text/tensors.json (although with some cryptic things). Not very clear what the bug is. Any help is appreciated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I install TensorFlow's tensorboard? - Stack Overflow
The steps to install Tensorflow are here: https://www.tensorflow.org/install/. For example, on Linux for CPU-only (no GPU), you would type this command:
Read more >
Tensorflow GPU Installation Made Easy: Use conda instead of ...
Want to Install Tensorflow on your GPU machine and run those GPU eating Deep Learning Algorithms? Well you are at the right place....
Read more >
Automatically rewrite TF 1.x and compat.v1 API symbols
This will upgrade your code to a format where it only uses symbols available in TensorFlow 2.0. Deprecated symbols will be accessed with...
Read more >
TensorFlow on the HPC Clusters
Test the installation of the GPU version of TensorFlow by running a short job. First, download the necessary data. The compute nodes do...
Read more >
Meshes not showing in tensorboard - PyTorch Forums
Hi, I am using pytorch 1.3.1 and tf-nighty (as per the pytorch documentation). I have tried the example code for add_mesh to add...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found