Start logging to W&B
To start logging your Composer training runs to W&B, pass acomposer.loggers.WandBLogger instance to the composer.Trainer:

Use Composer’s WandBLogger
The following sections describe how the WandBLogger integrates with Composer’s Trainer.
The Composer library uses the WandBLogger class in the Trainer to log metrics to W&B. Instantiate the logger and pass it to the Trainer:
Logger arguments
For the parameters you can use to customize howWandBLogger records your runs, see the Composer documentation.
The following example shows a typical usage that passes run notes and a config dictionary through init_kwargs:
Log prediction samples
In addition to scalar metrics, you can log rich media such as model predictions to W&B for qualitative review. You can use Composer’s Callbacks system to control when you log to W&B withWandBLogger. The following example logs a sample of the validation images and predictions: