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.

[Question] Tensorboard logging doesnt work

See original GitHub issue

Important Note: We do not do technical support, nor consulting and don’t answer personal questions per email. Please post your question on the RL Discord, Reddit or Stack Overflow in that case.

Question

I am running my learning algorithm on a custom environment created using Robosuite. I followed the documentation and try to use the tensorboard but the file used by tensorboard doesnt get created.

model = PPO('MlpPolicy', env, verbose=1, n_steps=4, batch_size=4, tensorboard_log="./ppo_tensorboard/") model.learn(total_timesteps=8, tb_log_name='learning') #

I run it just for few steps to see if file used by tensorboard gets created but it doesnt. Any suggestions?

Checklist

  • I have read the documentation (required)
  • I have checked that there is no similar issue in the repo (required)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
stwerner97commented, Feb 10, 2022

Sure, I will open a PR later today 😃

1reaction
Miffylicommented, Feb 10, 2022

@stwerner97 I understand the issue, but on the other side there is not much to log after few steps in the environment: only a poor sample of the FPS of the environment, time ran and number of steps done. The episode stats only appear once episodes are completed (i.e. not updated every step), and there are no training metrics until first training rollout is done after n_steps. I recommend looking at, say, SAC or TD3 if you have a very low FPS environment (they are more sample efficient).

Read more comments on GitHub >

github_iconTop Results From Across the Web

TensorFlow not logging any event files, tensorboard ... - GitHub
Estimator , and run without a glitch. However, I don't find any event files under model_dir , and TensorBoard simply shows nothing.
Read more >
Why does this code not produce a log that is readable by ...
Kelher's suggestion I made it work by (a) Running tensorBoard NOT from inside Jupter, but in a terminal window (b) cd'ing into the...
Read more >
TensorBoard Scalars: Logging training metrics in Keras
TensorBoard reads log data from the log directory hierarchy. In this notebook, the root log directory is logs/scalars , suffixed by a ...
Read more >
TensorBoard.dev - Upload and Share ML Experiments for Free
A managed service to enable sharing ML experiment results for collaboration, publishing, and troubleshooting. Easily upload TensorBoard logs and share a ...
Read more >
How to use TensorBoard with PyTorch
Run TensorBoard. Install TensorBoard through the command line to visualize data you logged. $ pip install tensorboard.
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