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 log file not generated

See original GitHub issue

Describe the bug In Stable Baseline, if I train sac.SAC with tensorboard_log='./logs/', I get a Tensorboard log in ./logs/SAC_1/. But, in Stable Baselines 3, with the same keyword argument, a Tensorboard log is not generated.

Code example If I run my training script with

    import stable_baselines as sb

    # soft actor critic
    agent = sb.sac.SAC(
        sb.sac.MlpPolicy,
        env,
        tensorboard_log='./logs/',
    )

I get a log at ./logs/SAC_1/events.out.tfevents.1594902758.machinename.

But, if I run the equivalent in this updated version as so

    import stable_baselines3 as sb

    # soft actor critic
    agent = sb.sac.SAC(
        sb.sac.MlpPolicy,
        env,
        tensorboard_log='./logs/',
    )

the previous log generation doesn’t happen.

System Info

  • Everything is installed via pip if possible
  • Python 3.6.9
  • torch 1.5.0
  • tensorboard 1.14.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

13reactions
cispraguecommented, Aug 9, 2020

Got it! I needed to uninstall my current version, then reinstall with the [extra] tag. Thanks for your help.

1reaction
araffincommented, Jul 16, 2020

Then please fill up the issue template completely.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does this code not produce a log that is readable by ...
One of the reasons that tensorBoard can't find your folder on Windows is that there is an overloading of syntax. Something like "C:/logfolder" ......
Read more >
TensorBoard Scalars: Logging training metrics in Keras
First, generate 1000 data points roughly along the line y = 0.5x + 2. ... TensorBoard reads log data from the log directory...
Read more >
Visualize experiments with TensorBoard - Azure Machine ...
If your experiment natively outputs log files that are consumable by ... allows for TensorBoard to generate visualizations off of them.
Read more >
How to use TensorBoard with PyTorch
Now, start TensorBoard, specifying the root log directory you used above. Argument logdir points to directory where TensorBoard will look to find event...
Read more >
Using Tensorboard — pykeen 1.9.0 documentation
Tensorboard logs can created without actually installing tensorboard itself. However, if you want to view and interact with the data created via the...
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 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