Skip to main content

Documentation Index

Fetch the complete documentation index at: https://wb-21fd5541-style-guide-models-integrations-20260527-015516.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Ultralytics’ YOLOv5 (“You Only Look Once”) model family enables real-time object detection with convolutional neural networks. W&B is directly integrated into YOLOv5, providing experiment metric tracking, model and dataset versioning, rich model prediction visualization, and more. Run a single pip install before you run your YOLO experiments.
All W&B logging features are compatible with data-parallel multi-GPU training, such as with PyTorch DDP.

Track core experiments

To get started, install wandb alongside YOLOv5 and run training as usual. By installing wandb, you activate the built-in W&B logging features: system metrics, model metrics, and media logged to interactive Dashboards.
pip install wandb
git clone https://github.com/ultralytics/yolov5.git
python yolov5/train.py  # train a small network on a small dataset
Follow the links that wandb prints to standard out.
W&B dashboard showing YOLOv5 training metrics and system charts.

Customize the integration

Once experiment tracking is working, you can enable additional W&B features (such as model versioning, dataset versioning, and prediction visualization) by passing a few command-line arguments to YOLO.
  • If you pass a number to --save_period, W&B saves a model version at the end of every save_period epochs. The model version includes the model weights and tags the best-performing model in the validation set.
  • Turning on the --upload_dataset flag also uploads the dataset for data versioning.
  • Passing a number to --bbox_interval turns on data visualization. At the end of every bbox_interval epochs, W&B uploads the outputs of the model on the validation set.
python yolov5/train.py --epochs 20 --save_period 1
Every W&B account comes with 100 GB of free storage for datasets and models.
Here’s what that looks like.
Model versioning
Data visualization
With data and model versioning, you can resume paused or crashed experiments from any device, no setup necessary. See the Colab for details.