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.

Tensorboard not displaying scalars

See original GitHub issue

When the flag run_tensorboard_locally is set to True , for example estimator.fit(inputs, run_tensorboard_locally=True), where estimator = TensorFlow(..) , Tensorboard only displays the graph and projector but not any scalars or images.

If one run is terminated and a new one is started by running again: estimator.fit(inputs, run_tensorboard_locally=True) then the scalars and images of the previous run are displayed on Tensorboard but they are not updated as training continues. It seems like it, when training is restarted, Tensorboard loads the previously saved logs from the /tmp/<temp_folder>/ , which was created by tempfile.mkdtemp(), but the new logs are then saved to a newly created folder.

Any way to get Tensorboard working properly? Would it make sense to add the ability to define logdir for Tensorboard when calling TensorFlow?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
ChoiByungWookcommented, Mar 23, 2018

@jbencook Thank you so much for your contribution!

Until the next SDK release, the Tensorboard fix can be viewed by building and installing from master.

It is also possible to view the fix within a SageMaker notebook instance by building and installing from source.

  1. Start a new conda_tensorflow_p27 notebook
  2. Clone from master and pip install within the cell
! git clone https://github.com/aws/sagemaker-python-sdk.git python-sdk-tensorboard-fix && cd python-sdk-tensorboard-fix && pip install . --upgrade
  1. Run the cell

All tensorflow jobs that run tensorboard should now correctly display scalars!

Feel free to run the sample tensorboard notebook, tensorflow_resnet_cifar10_with_tensorboard , which is in /sample-notebooks/sagemaker-python-sdk.

Thanks again!

1reaction
hsakkoutcommented, Mar 19, 2018

Just checking in to see if there are any updates or any indication of when this will be fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tensorboard doesn't show scalars anymore - Stack Overflow
Now I cannot see scalars or histograms. I have the: No scalar data was found. message, and the same for histograms etc. This...
Read more >
Tensorboard does not show any scalers or graphs · Issue #9701
No scalar data was found. Probable causes: You haven't written any scalar data to your event files. TensorBoard can't find your event files....
Read more >
TensorBoard Scalars: Logging training metrics in Keras
TensorBoard's Scalars Dashboard allows you to visualize these metrics ... You may see TensorBoard display the message "No dashboards are ...
Read more >
How to use TensorBoard with PyTorch
Log scalars. In machine learning, it's important to understand key metrics such as loss and how they change during training. Scalar helps to...
Read more >
My tensorboard cannot show scalar but only graph - Reddit
I see, but I'm not familiar with tensorboard yet, so I display the training curve since I can't show scalar on tensorboard right...
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