WandbVisBackend that you can use to:
- Log training and evaluation metrics.
- Log and manage experiment configs.
- Log additional records such as graphs, images, and scalars.
Get started
Installopenmim and wandb.
- Command Line
- Notebook
mmengine and mmcv using mim.
- Command Line
- Notebook
Use the WandbVisBackend with MMEngine runner
This section demonstrates a typical workflow using WandbVisBackend with mmengine.runner.Runner. The visualizer wraps the W&B backend so the MMEngine runner can route logs to W&B during training.
-
Define a
visualizerfrom a visualization config. The visualizer is what the runner uses to dispatch logs to the configured backend.You pass a dictionary of arguments for W&B run initialization input parameters toinit_kwargs. -
Initialize a
runnerwith thevisualizer, and callrunner.train()to start training. The runner uses the visualizer to stream metrics and configs to W&B.
Use the WandbVisBackend with OpenMMLab computer vision libraries
You can also use the WandbVisBackend to track experiments with OpenMMLab computer vision libraries such as MMDetection. The following example overrides the vis_backends entry from a base config so that the existing visualizer logs to W&B.