Core Structures (~ctlearn.core)#
Reference/API#
ctlearn.core Package#
ctlearn core functionalities
Functions#
|
Build the fully connected head for the Keras-based CTLearn model. |
|
A channel & spatial (dual) squeeze-excite block. |
|
A channel-wise squeeze-excite block. |
|
A spatial squeeze-excite block. |
Build the fully connected head for the PyTorch-based CTLearn model. |
Classes#
Interface for framework-specific convolution and pooling layers. |
|
|
Base component for creating a Keras model to be used in CTLearn. |
|
|
|
|
|
|
Select Keras layers for square or hexagonal model backbones. |
|
|
|
|
|
|
|
|
Generates batches for Keras application. |
|
Basic block for ResNet architectures. |
|
Bottleneck block for deeper ResNet architectures. |
|
A PyTorch container module to hold the multi-task fully connected heads. |
Select PyTorch layers for square or hexagonal model backbones. |
|
|
|
|
|
|
|
|
A channel & spatial (dual) squeeze-excite block in PyTorch. |
|
A channel-wise squeeze-excite (cSE) block in PyTorch. |
|
A spatial squeeze-excite (sSE) block in PyTorch. |
|
Generates items/batches for PyTorch application based on DLDataReader. |
ctlearn.core.model Module#
This module defines the CTLearnModel classes, which holds the basic functionality for creating a Keras model to be used in CTLearn.
Classes#
Interface for framework-specific convolution and pooling layers. |
|
|
Base component for creating a Keras model to be used in CTLearn. |
|
|
|
|
|
|
ctlearn.core.keras.model Module#
This module defines the CTLearnModel classes, which holds the basic functionality for creating a Keras model to be used in CTLearn.
Functions#
|
Build the fully connected head for the Keras-based CTLearn model. |
Classes#
Select Keras layers for square or hexagonal model backbones. |
|
|
|
|
|
|
|
ctlearn.core.pytorch.model Module#
This module defines the CTLearnModel classes, which holds the basic functionality for creating a PyTorch model to be used in CTLearn.
Functions#
Build the fully connected head for the PyTorch-based CTLearn model. |
Classes#
|
Basic block for ResNet architectures. |
|
Bottleneck block for deeper ResNet architectures. |
|
A PyTorch container module to hold the multi-task fully connected heads. |
Select PyTorch layers for square or hexagonal model backbones. |
|
|
|
|
|
|
|
ctlearn.core.keras.attention Module#
This module defines the squeeze-excite blocks for channel-wise and/or spatial-wise attention mechanisms.
Functions#
|
A channel & spatial (dual) squeeze-excite block. |
|
A channel-wise squeeze-excite block. |
|
A spatial squeeze-excite block. |
ctlearn.core.pytorch.attention Module#
This module defines the squeeze-excite blocks for channel-wise and/or spatial-wise attention mechanisms in PyTorch.
Classes#
|
A channel & spatial (dual) squeeze-excite block in PyTorch. |
|
A channel-wise squeeze-excite (cSE) block in PyTorch. |
|
A spatial squeeze-excite (sSE) block in PyTorch. |
ctlearn.core.keras.sequence Module#
Keras sequence for data loading.
Classes#
|
Generates batches for Keras application. |
ctlearn.core.pytorch.dataset Module#
PyTorch dataset for data loading.
Classes#
|
Generates items/batches for PyTorch application based on DLDataReader. |