utils¶
tiatoolbox.models.architecture.utils
Define utility layers and operators for models in tiatoolbox.
Functions
Define the post-processing of this class of model. |
|
A function to center crop image with given crop shape. |
|
A function to center crop image to shape. |
|
A decorator to compile a model using torch-compile. |
|
Check if the current GPU is compatible with torch-compile. |
|
Apply NMS to pre-processed peak maps to handle cross-channel conflicts. |
|
Post-processing function for peak detection. |
Classes
Attention module to apply attention mechanism on feature maps. |
|
Spatial and Channel Squeeze & Excitation (SCSE) module. |
|
Segmentation head for UNet++ architecture. |
|
A layer to scale input by a factor of 2. |