SegmentationTrainer
Bases: v8.detect.DetectionTrainer
Source code in ultralytics/yolo/v8/segment/train.py
__init__(cfg=DEFAULT_CFG, overrides=None, _callbacks=None)
Initialize a SegmentationTrainer object with given arguments.
Source code in ultralytics/yolo/v8/segment/train.py
get_model(cfg=None, weights=None, verbose=True)
Return SegmentationModel initialized with specified config and weights.
Source code in ultralytics/yolo/v8/segment/train.py
get_validator()
Return an instance of SegmentationValidator for validation of YOLO model.
Source code in ultralytics/yolo/v8/segment/train.py
plot_metrics()
plot_training_samples(batch, ni)
Creates a plot of training sample images with labels and box coordinates.
Source code in ultralytics/yolo/v8/segment/train.py
train
Train a YOLO segmentation model based on passed arguments.
Source code in ultralytics/yolo/v8/segment/train.py
Created 2023-04-16, Updated 2023-05-30
Authors: Glenn Jocher (4)