[Question] Tensorboard logging doesnt work
See original GitHub issueImportant 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:
- Created 2 years ago
- Reactions:1
- Comments:13 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sure, I will open a PR later today 😃
@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).