vis4d.op.base.dla¶
DLA base model.
Classes
|
BasicBlock. |
|
Bottleneck. |
|
BottleneckX. |
|
DLA base model. |
|
Root. |
|
Tree. |
- class BasicBlock(inplanes, planes, stride=1, dilation=1)[source]¶
BasicBlock.
Creates an instance of the class.
- class Bottleneck(inplanes, planes, stride=1, dilation=1)[source]¶
Bottleneck.
Creates an instance of the class.
- class BottleneckX(inplanes, planes, stride=1, dilation=1)[source]¶
BottleneckX.
Creates an instance of the class.
- class DLA(name=None, levels=(1, 1, 1, 2, 2, 1), channels=(16, 32, 64, 128, 256, 512), block='BasicBlock', residual_root=False, cardinality=32, weights=None, style='imagenet')[source]¶
DLA base model.
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. fp[0] is a feature map with the image resolution instead of the original image.
- 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]