YOLOv11<T>
Models & Types · AiDotNet.ComputerVision.Detection.ObjectDetection.YOLO
YOLOv11 object detector with enhanced feature extraction and attention mechanisms.
Inheritance: ModelBase<T, Tensor<T>, Tensor<T>> → VisionTaskModelBase<T> → ObjectDetectorBase<T> → YOLOv11<T>
Implements: IDetectionTrainingModel<T>
For Beginners
YOLOv11 is the latest YOLO version with improved feature extraction using attention mechanisms and more efficient architecture. It builds upon YOLOv8-v10 innovations while adding new enhancements.
How It Works
Key features:
- C3k2 blocks with attention for enhanced feature extraction
- Spatial Pyramid Pooling Fast (SPPF) with larger kernel
- Multi-head self-attention in neck
- Improved small object detection
Reference: Ultralytics, “YOLOv11” 2024
Constructors
| Constructor | Summary |
|---|---|
YOLOv11(ObjectDetectionOptions<T> options) |
Creates a new YOLOv11 detector. |
Properties
| Property | Summary |
|---|---|
string Name { get; } |
Methods
| Method | Summary |
|---|---|
DetectionResult<T> Detect(Tensor<T> image, double confidenceThreshold, double nmsThreshold) |
|
Task LoadWeightsAsync(string pathOrUrl, CancellationToken cancellationToken) |
|
void SaveWeights(string path) |
|
void TrainDetections(Tensor<T> input, DetectionTrainingBatch<T> targets) |
Trains the head with task-aligned assignment, BCE classification, CIoU and distribution focal loss. |