vis4d.op.base.dla
DLA base model.
Classes
|
BasicBlock. |
|
Bottleneck. |
|
BottleneckX. |
|
DLA base model. |
|
Root. |
|
Tree. |
- class BasicBlock(inplanes, planes, stride=1, dilation=1, with_cp=False)[source]
BasicBlock.
- class Bottleneck(inplanes, planes, stride=1, dilation=1, with_cp=False)[source]
Bottleneck.
- class BottleneckX(inplanes, planes, stride=1, dilation=1, with_cp=False)[source]
BottleneckX.
- class Root(in_channels, out_channels, kernel_size, residual, with_cp=False)[source]
Root.
- class Tree(levels, block, in_channels, out_channels, stride=1, level_root=False, root_dim=0, root_kernel_size=1, dilation=1, root_residual=False, with_cp=False)[source]
Tree.
- class DLA(name, out_indices=(0, 1, 2, 3), with_cp=False, pretrained=False, weights=None)[source]
DLA base model.
- __init__(name, out_indices=(0, 1, 2, 3), with_cp=False, pretrained=False, weights=None)[source]
Creates an instance of the class.
- forward(images)[source]
DLA forward.
- Parameters:
images (Tensor[N, C, H, W]) – Image input to process. Expected to type float32 with values ranging 0..255.
- Returns:
The output feature pyramid. The list index represents the level, which has a downsampling raio of 2^index.
- Return type:
fp (list[Tensor])
- property out_channels: list[int]
Get the numbers of channels for each level of feature pyramid.
- Returns:
number of channels
- Return type:
list[int]