#1222·tianshou

Wandb logger

Author: dev0GuyCreated Oct 14, 2024Updated Feb 19, 2026

Versions:

  • tianshou: 1.1.0
  • gymnasium: 0.28.1
  • torch: 0.28.1
  • numpy: 1.26.4
  • sys: '3.11.7 | packaged by conda-forge | (main, Dec 23 2023, 14:38:07) [Clang 16.0.6 ]'
  • sys.platform: 'darwin'
  • wandb: 0.18.1

I've the following setup of logger (terminal already connected to wandb acount & project):

python
wandb.init()
logger = WandbLogger()
writer = SummaryWriter('./tensorboard')
logger.load(writer)

When looking on run page inside wandb I can see only system metrics. However when run tensorboard on the SummaryWriter log path I'm able to review the result using tensorboard. I've followed logging instruction inside docs.

Thanks in advance :)


  • I have marked all applicable categories:
    • exception-raising bug
    • RL algorithm bug
    • documentation request (i.e. "X is missing from the documentation.")
    • new feature request
    • design request (i.e. "X should be changed to Y.")
  • [ x] I have visited the source website
  • [ x] I have searched through the issue tracker for duplicates
  • [ x] I have mentioned version numbers, operating system and environment, where applicable:
    python
    import tianshou, gymnasium as gym, torch, numpy, sys
    print(tianshou.__version__, gym.__version__, torch.__version__, numpy.__version__, sys.version, sys.platform)