vis4d.op.seg.semantic_fpn
Semantic FPN Head for segmentation.
Classes
|
SemanticFPNHead used in Panoptic FPN. |
|
Output of the SemanticFPN prediction. |
- class SemanticFPNOut(outputs: Tensor)[source]
Output of the SemanticFPN prediction.
-
outputs:
Tensor Alias for field number 0
-
outputs:
- class SemanticFPNHead(num_classes=53, in_channels=256, inner_channels=128, start_level=2, end_level=6, dropout_ratio=0.1)[source]
SemanticFPNHead used in Panoptic FPN.
- __init__(num_classes=53, in_channels=256, inner_channels=128, start_level=2, end_level=6, dropout_ratio=0.1)[source]
Creates an instance of the class.
- Parameters:
num_classes (int) – Number of classes. Default: 53.
in_channels (int) – Number of channels in the input feature map.
inner_channels (int) – Number of channels in inner features.
start_level (int) – The start level of the input features used in SemanticFPN.
end_level (int) – The end level of the used features, the
end_level-th layer will not be used.dropout_ratio (float) – The drop ratio of dropout layer. Default: 0.1.
- forward(features)[source]
Transforms feature maps and returns segmentation prediction.
- Parameters:
features (list[Tensor]) – List of multi-level image features.
- Returns:
Segmentation outputs.
- Return type: