Blog

YOLOv8 Precision, Recall, and F1 Score Explained

YOLOv8 precision, recall, and F1 score are core evaluation metrics used to understand how accurately an object detection model identifies real objects while avoiding incorrect detections. Precision focuses on the reliability of predictions, recall measures how many real objects are successfully detected, and F1 combines both into a single balanced metric. Ultralytics validation reports precision […]

YOLOv8 Precision, Recall, and F1 Score Explained Read More »

YOLOv8 Class Weights and Loss Weights: How They Affect Training

YOLOv8 class weights and loss weights both influence model optimization, but they solve different problems. Class weights change how strongly individual object classes contribute to the classification objective, which can help with imbalanced datasets. Loss weights such as box, cls, and dfl change the relative importance of localization, classification, and distribution-based bounding-box regression during training.

YOLOv8 Class Weights and Loss Weights: How They Affect Training Read More »

YOLOv8 Single Class Training: How to Train on One Object Class

YOLOv8 single class training is used when a detector only needs to identify one target object category, such as helmets, vehicles, defects, tumors, license plates, or a specific animal. A custom one-class dataset normally assigns class ID 0 to every target object and defines only one class name in data.yaml. Ultralytics also provides the single_cls=True

YOLOv8 Single Class Training: How to Train on One Object Class Read More »

YOLOv8 Confusion Matrix Explained: How to Read and Understand Results

The YOLOv8 confusion matrix is a validation tool that shows how predicted object classes compare with the actual ground-truth classes. It helps identify correct detections, class-to-class confusion, false positives, and false negatives in a way that overall metrics such as mAP cannot fully show. In current Ultralytics detection validation, the confusion matrix uses True classes

YOLOv8 Confusion Matrix Explained: How to Read and Understand Results Read More »

YOLOv8 Validation Guide: How to Evaluate Model Performance

YOLOv8 validation is the process of evaluating a trained model on labeled data that was not used to update its weights. Validation helps measure how well the detector generalizes beyond the training set and provides metrics such as precision, recall, mAP50, mAP50-95, and class-level performance. Ultralytics provides a dedicated Val mode that can be used

YOLOv8 Validation Guide: How to Evaluate Model Performance Read More »

YOLOv8 Class Imbalance: Causes, Effects, and Solutions

YOLOv8 class imbalance occurs when some object classes appear much more frequently than others in the training dataset. A model trained on an imbalanced dataset may learn majority classes well while performing poorly on rare classes. The most effective solutions usually involve improving minority-class data, using controlled oversampling or augmentation, monitoring per-class metrics, and, in

YOLOv8 Class Imbalance: Causes, Effects, and Solutions Read More »

YOLOv8 Close Mosaic Parameter: How It Works and When to Use It

The YOLOv8 close_mosaic parameter controls when Mosaic augmentation is turned off near the end of training. Mosaic augmentation is useful because it combines multiple training images into a single composite image, increasing visual diversity and exposing the model to unusual object positions and scales. However, keeping Mosaic active until the final epoch can make the

YOLOv8 Close Mosaic Parameter: How It Works and When to Use It Read More »

YOLOv8 Multi-Scale Training: How It Works and When to Use It

YOLOv8 multi-scale training is a training strategy in which the input resolution changes dynamically instead of remaining fixed for every batch. In current Ultralytics training settings, the multi_scale parameter is a floating-point value that controls how far the image size can vary above and below the base imgsz. For example, imgsz=640 multi_scale=0.25 allows training resolutions

YOLOv8 Multi-Scale Training: How It Works and When to Use It Read More »

How to Freeze Layers in YOLOv8 During Training

Freezing layers in YOLOv8 means preventing selected model parameters from being updated during training. This is commonly used for transfer learning, especially when starting from pretrained weights and training on a relatively small custom dataset. Ultralytics supports the freeze training argument as either an integer, which freezes the first N model layers, or a list

How to Freeze Layers in YOLOv8 During Training Read More »

Scroll to Top