ocnn.modules
Returns the initial input feature stored in octree. |
|
A sequence of |
|
A sequence of |
|
A sequence of |
|
Performs a convolution with kernel |
|
A sequence of |
|
A sequence of |
|
A sequence of |
|
A sequence of |
|
A sequence of |
|
A sequence of |
|
Performs a convolution with kernel |
|
A sequence of |
|
A sequence of |
|
Octree-based ResNet block in a bottleneck style. |
|
Basic Octree-based ResNet block. |
|
A sequence of |
- class InputFeature(feature: str = 'NDF', nempty: bool = False)[source]
Returns the initial input feature stored in octree.
Refer to
ocnn.octree.Octree.get_input_feature()for details.
- class OctreeConvBn(in_channels: int, out_channels: int, kernel_size: List[int] = [3], stride: int = 1, nempty: bool = False)[source]
A sequence of
OctreeConvandBatchNorm.Please refer to
ocnn.nn.OctreeConvfor details on the parameters.
- class OctreeConvBnRelu(in_channels: int, out_channels: int, kernel_size: List[int] = [3], stride: int = 1, nempty: bool = False)[source]
A sequence of
OctreeConv,BatchNorm, andRelu.Please refer to
ocnn.nn.OctreeConvfor details on the parameters.
- class OctreeDeconvBnRelu(in_channels: int, out_channels: int, kernel_size: List[int] = [3], stride: int = 1, nempty: bool = False)[source]
A sequence of
OctreeDeconv,BatchNorm, andRelu.Please refer to
ocnn.nn.OctreeDeconvfor details on the parameters.
- class Conv1x1(in_channels: int, out_channels: int, use_bias: bool = False)[source]
Performs a convolution with kernel
(1,1,1).The shape of octree features is
(N, C), whereNis the node number andCis the feature channel. Therefore,Conv1x1can be implemented withtorch.nn.Linear.
- class Conv1x1BnRelu(in_channels: int, out_channels: int)[source]
A sequence of
Conv1x1,BatchNormandRelu.
- class OctreeConvGn(in_channels: int, out_channels: int, group: int, kernel_size: List[int] = [3], stride: int = 1, nempty: bool = False)[source]
A sequence of
OctreeConvandOctreeGroupNorm.Please refer to
ocnn.nn.OctreeConvfor details on the parameters.
- class OctreeConvGnRelu(in_channels: int, out_channels: int, group: int, kernel_size: List[int] = [3], stride: int = 1, nempty: bool = False)[source]
A sequence of
OctreeConv,OctreeGroupNorm, andRelu.Please refer to
ocnn.nn.OctreeConvfor details on the parameters.
- class OctreeDeconvGnRelu(in_channels: int, out_channels: int, group: int, kernel_size: List[int] = [3], stride: int = 1, nempty: bool = False)[source]
A sequence of
OctreeDeconv,OctreeGroupNorm, andRelu.Please refer to
ocnn.nn.OctreeConvfor details on the parameters.
- class Conv1x1Gn(in_channels: int, out_channels: int, group: int, nempty: bool = False)[source]
A sequence of
Conv1x1,OctreeGroupNorm.
- class Conv1x1GnRelu(in_channels: int, out_channels: int, group: int, nempty: bool = False)[source]
A sequence of
Conv1x1,OctreeGroupNormandRelu.
- class OctreeResBlock(in_channels: int, out_channels: int, stride: int = 1, bottleneck: int = 4, nempty: bool = False)[source]
Octree-based ResNet block in a bottleneck style. The block is composed of a series of
Conv1x1,Conv3x3, andConv1x1.- Parameters:
in_channels (int) – Number of input channels.
out_channels (int) – Number of output channels.
stride (int) – The stride of the block (
1or2).bottleneck (int) – The input and output channels of the
Conv3x3is equal to the input channel divided bybottleneck.nempty (bool) – If True, only performs the convolution on non-empty octree nodes.
- class OctreeResBlock2(in_channels, out_channels, stride=1, bottleneck=1, nempty=False)[source]
Basic Octree-based ResNet block. The block is composed of a series of
Conv3x3andConv3x3.Refer to
OctreeResBlockfor the details of arguments.