ocnn.models
Octree-based LeNet for classification. |
|
Octree-based ResNet for classification. |
|
Octree-based SegNet for segmentation. |
|
Octree-based UNet for segmentation. |
|
Octree-based HRNet for classification and segmentation. |
|
Octree-based AutoEncoder for shape encoding and decoding. |
|
Octree-based AutoEncoder for shape encoding and decoding. |
- class LeNet(in_channels: int, out_channels: int, stages: int, nempty: bool = False)[source]
Octree-based LeNet for classification.
- class ResNet(in_channels: int, out_channels: int, resblock_num: int, stages: int, nempty: bool = False, dropout: float = 0.5)[source]
Octree-based ResNet for classification.
- class SegNet(in_channels: int, out_channels: int, stages: int, interp: str = 'linear', nempty: bool = False, **kwargs)[source]
Octree-based SegNet for segmentation.
- class UNet(in_channels: int, out_channels: int, interp: str = 'linear', nempty: bool = False, **kwargs)[source]
Octree-based UNet for segmentation.
- class HRNet(in_channels: int, out_channels: int, stages: int = 3, interp: str = 'linear', nempty: bool = False)[source]
Octree-based HRNet for classification and segmentation.
- class AutoEncoder(channel_in: int, channel_out: int, depth: int, full_depth: int = 2, feature: str = 'ND')[source]
Octree-based AutoEncoder for shape encoding and decoding.
- Parameters:
channel_in (int) – The channel of the input signal.
channel_out (int) – The channel of the output signal.
depth (int) – The depth of the octree.
full_depth (int) – The full depth of the octree.
feature (str) – The feature type of the input signal. For details of this argument, please refer to
ocnn.modules.InputFeature.
- decoder(shape_code: Tensor, octree: Octree, update_octree: bool = False)[source]
The decoder network of the AutoEncoder.
- decode_code(shape_code: Tensor)[source]
Decodes the shape code to an output octree.
- Parameters:
shape_code (torch.Tensor) – The shape code for decoding.
- init_octree(shape_code: Tensor)[source]
Initialize a full octree for decoding.
- Parameters:
shape_code (torch.Tensor) – The shape code for decoding, used to get the batch_size and device to initialize the output octree.
- class OUNet(channel_in: int, channel_out: int, depth: int, full_depth: int = 2, feature: str = 'ND')[source]
- class Image2Shape(channel_out: int, depth: int, full_depth: int = 2, code_channel: int = 32)[source]
Octree-based AutoEncoder for shape encoding and decoding.
- Parameters:
- decoder(shape_code: Tensor, octree: Octree, update_octree: bool = False)[source]
The decoder network of the AutoEncoder.
- decode_code(shape_code: Tensor)[source]
Decodes the shape code to an output octree.
- Parameters:
shape_code (torch.Tensor) – The shape code for decoding.
- init_octree(shape_code: Tensor)[source]
Initialize a full octree for decoding.
- Parameters:
shape_code (torch.Tensor) – The shape code for decoding, used to getting the batch_size and device to initialize the output octree.