这是indexloc提供的服务,不要输入任何密码
Skip to content

Wandb logger  #1222

@dev0Guy

Description

@dev0Guy

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):

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:
    import tianshou, gymnasium as gym, torch, numpy, sys
    print(tianshou.__version__, gym.__version__, torch.__version__, numpy.__version__, sys.version, sys.platform)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions