YoloPanNeckBase<T>
Base Classes · AiDotNet.ComputerVision.Detection.ObjectDetection.YOLO
The PAN-FPN neck shared by YOLOv8 and YOLO11: top-down nearest upsampling with concatenation and a fusion block, then bottom-up stride-2 Conv with concatenation and a fusion block. The versions differ only in the fusion block (C2f versus C3k2), which each supplies.
Inheritance: ModelBase<T, Tensor<T>, Tensor<T>> → NeckBase<T> → YoloPanNeckBase<T>
Implements: IGeneratedParameterRegistrar<T>
Known derived types: YOLOv11Neck<T>, YOLOv8Neck<T>
How It Works
Partial, with the blocks in readonly fields of THIS type, because the model-parameter generator discovers a neck’s weights from the declared fields of a partial type; blocks held anywhere else reach no parameter vector.
Properties
| Property | Summary |
|---|---|
IReadOnlyList<int> LevelChannels { get; } |
|
int NumLevels { get; } |
|
int OutputChannels { get; } |
|
string Name { get; } |
Methods
| Method | Summary |
|---|---|
List<Tensor<T>> Forward(List<Tensor<T>> features) |
|
long GetParameterCount() |
|
void ReadParameters(BinaryReader reader) |
|
void SetTrainingMode(bool training) |
|
void WriteParameters(BinaryWriter writer) |