Using tensorboard in pytorch, but get blank page?

10.8k Views Asked by At

I am using tensorboard in pytorch 1.3.1, and I did exactly the same in the pytorch docs for tensorboard. After running tensorboard --logdir=runs, I got this:

enter image description here.

$ tensorboard --logdir=runs
TensorFlow installation not found - running with reduced feature set.
Serving TensorBoard on localhost; to expose to the network, use a proxy or pass --bind_all
TensorBoard 2.1.0 at http://localhost:6006/ (Press CTRL+C to quit)

And after opening http://localhost:6006/, I got blank page like this enter image description here

I also tried tensorboardX, and got the same result. Could you please tell how to solve the problem? thx.

5

There are 5 best solutions below

0
On

Make sure you are running tensorboard --logdir=runs from the same dir as 'runs'

0
On

You may want to update both toolboxes to the latest version. The following resolved my problem:

pip3 install --upgrade tensorflow tensorboard

Of course as Andrei mentioned, make sure the path to the results are correct:

tensorboard --logdir=PATH_TO_RESULTS
2
On

I am using Torch 1.4.0 on Windows and I had the same issue. Turns out I had installed the 2.x version of Tensorboard. I reverted back to 1.15.0 and it solved the issue.

0
On

First you have to run in terminal

`venv\Scripts\activate`
in your project directory 
then 
`tensorboard --logdir results --port 6006`
and you got it
1
On

I also faced this problem in tensorboard version >= 2.0. What I did is add --bind_all
You can try:

tensorboard --logdir=runs --bind_all