Reference for ultralytics/models/yolo/segment/train.py
Note
This file is available at https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/segment/train.py. If you spot a problem please help fix it by contributing a Pull Request 🛠️. Thank you 🙏!
ultralytics.models.yolo.segment.train.SegmentationTrainer
Bases: DetectionTrainer
A class extending the DetectionTrainer class for training based on a segmentation model.
Example
Source code in ultralytics/models/yolo/segment/train.py
get_model
Return SegmentationModel initialized with specified config and weights.
Source code in ultralytics/models/yolo/segment/train.py
get_validator
Return an instance of SegmentationValidator for validation of YOLO model.
Source code in ultralytics/models/yolo/segment/train.py
plot_metrics
plot_training_samples
Creates a plot of training sample images with labels and box coordinates.
Source code in ultralytics/models/yolo/segment/train.py
📅 Created 1 year ago
✏️ Updated 3 months ago