Reference for ultralytics/models/yolo/yoloe/train_seg.py#
Improvements
This page is sourced from https://github.com/ultralytics/ultralytics/blob/main/ultralytics/models/yolo/yoloe/train_seg.py. Have an improvement or example to add? Open a Pull Request — thank you! 🙏
Summary
Class ultralytics.models.yolo.yoloe.train_seg.YOLOESegTrainer#
YOLOESegTrainer()Bases: YOLOETrainer, SegmentationTrainer
Trainer class for YOLOE segmentation models.
ultralytics/models/yolo/yoloe/train_seg.py
class YOLOESegTrainer(YOLOETrainer, SegmentationTrainer):
"""Trainer class for YOLOE segmentation models."""Class ultralytics.models.yolo.yoloe.train_seg.YOLOEPESegTrainer#
YOLOEPESegTrainer()Bases: SegmentationTrainer
Fine-tune YOLOE segmentation models in linear probing way.
ultralytics/models/yolo/yoloe/train_seg.py
class YOLOEPESegTrainer(SegmentationTrainer):
"""Fine-tune YOLOE segmentation models in linear probing way."""
get_model = YOLOEPETrainer.get_model # shared linear-probing builder; SegmentationTrainer stays the sole baseClass ultralytics.models.yolo.yoloe.train_seg.YOLOESegTrainerFromScratch#
YOLOESegTrainerFromScratch()Bases: YOLOETrainerFromScratch, YOLOESegTrainer
Trainer for YOLOE segmentation models trained from scratch without pretrained weights.
ultralytics/models/yolo/yoloe/train_seg.py
class YOLOESegTrainerFromScratch(YOLOETrainerFromScratch, YOLOESegTrainer):
"""Trainer for YOLOE segmentation models trained from scratch without pretrained weights."""Class ultralytics.models.yolo.yoloe.train_seg.YOLOESegVPTrainer#
YOLOESegVPTrainer()Bases: YOLOEVPTrainer, YOLOESegTrainerFromScratch
Trainer for YOLOE segmentation models with Vision Prompt (VP) capabilities.
ultralytics/models/yolo/yoloe/train_seg.py
class YOLOESegVPTrainer(YOLOEVPTrainer, YOLOESegTrainerFromScratch):
"""Trainer for YOLOE segmentation models with Vision Prompt (VP) capabilities."""