Tensorboard and TensorboardX
W&B supports patching Tensorboard or TensorboardX to automatically log all summaries.
import wandb wandb.init(tensorboard=True)
Under the hood the patch tries to guess which version of tensorboard to patch. We support tensorboard with all versions of tensorflow. If you're using tensorboard with another framework W&B supports tensorboard > 1.14 with PyTorch as well as TensorboardX. You can pass
tensorboardX=False to ensure vanilla Tensorboard is patched, if you're using tensorboard > 1.14 with PyTorch you can pass
pytorch=True to ensure it's patched. By default we also sync the tfevents files and any *.pbtxt files. This enables us to launch a Tensorboard instance on your behalf. You will see a "Tensorboard" tab on the run page, checkout our blog post. This behaviour can be disabled by passing
import wandb wandb.init() wandb.tensorboard.patch(save=False, tensorboardX=True)
Syncing Previous Tensorboard Runs
If you have existing experiments you would like to import into wandb, you can run
wandb sync log_dir where log_dir is a local directory containing the tfevents files.