Class FeatureMap<T>
- Namespace
- AiDotNet.ComputerVision.Detection.Backbones
- Assembly
- AiDotNet.dll
Feature map output from a backbone network.
public class FeatureMap<T>
Type Parameters
TThe numeric type used for calculations.
- Inheritance
-
FeatureMap<T>
- Inherited Members
Constructors
FeatureMap(Tensor<T>, int, int)
Creates a new feature map.
public FeatureMap(Tensor<T> features, int stride, int level)
Parameters
featuresTensor<T>The feature tensor.
strideintThe downsampling stride.
levelintThe pyramid level index.
Properties
Channels
Gets the number of channels in the feature map.
public int Channels { get; }
Property Value
Features
The feature tensor with shape [batch, channels, height, width].
public Tensor<T> Features { get; set; }
Property Value
- Tensor<T>
Level
The level index in the feature pyramid (0 = highest resolution).
public int Level { get; set; }
Property Value
SpatialSize
Gets the spatial dimensions of the feature map.
public (int Height, int Width) SpatialSize { get; }
Property Value
Stride
The stride (downsampling factor) of this feature map.
public int Stride { get; set; }