Skip to main content
Ignite supports W&B handler to log metrics, model/optimizer parameters, gradients during training and validation. It can also be used to log model checkpoints to the W&B cloud. This class is also a wrapper for the wandb module. This means that you can call any wandb function using this wrapper. See examples on how to save model parameters and gradients.

Basic setup

Using WandBLogger in ignite is a modular process. First, you create a WandBLogger object. Next, you attach it to a trainer or evaluator to automatically log the metrics. This example shows:
  • Logs training loss, attached to the trainer object.
  • Logs validation loss, attached to the evaluator.
  • Logs optional Parameters, such as learning rate.
  • Watches the model.
You can optionally utilize ignite EVENTS to log the metrics directly to the terminal
This code generates these visualizations::
PyTorch Ignite training dashboard
PyTorch Ignite performance
PyTorch Ignite hyperparameter tuning results
PyTorch Ignite model comparison dashboard
Refer to the Ignite Docs for more details.