YOLOSeg<T>

Models & Types · AiDotNet.ComputerVision.Segmentation.InstanceSegmentation

YOLOv8-Seg for instance segmentation.

Inheritance: ModelBase<T, Tensor<T>, Tensor<T>> → InstanceSegmenterBase<T> → YOLOSeg<T>

Implements: IGeneratedParameterRegistrar<T>

For Beginners

YOLOv8-Seg extends YOLOv8 detection with a segmentation head. It uses prototype masks and per-instance coefficients for efficient mask prediction. This is much faster than Mask R-CNN while maintaining good quality.

How It Works

Key features:

  • Single-stage detection + segmentation
  • Prototype-based mask assembly
  • Shared backbone with detection head
  • Real-time performance

Constructors

Constructor Summary
YOLOSeg(InstanceSegmentationOptions<T> options) Creates a new YOLOv8-Seg model.

Properties

Property Summary
string Name { get; }

Methods

Method Summary
InstanceSegmentationResult<T> Segment(Tensor<T> image)
Task LoadWeightsAsync(string pathOrUrl, CancellationToken cancellationToken)
long GetParameterCount()
void SaveWeights(string path)