dual_squeeze_excite_block#
- ctlearn.core.dual_squeeze_excite_block(inputs, ratio=16, name=None)[source]#
A channel & spatial (dual) squeeze-excite block.
This function creates a dual squeeze-excite block that combines both channel-wise and spatial-wise squeeze-excite mechanisms. The channel squeeze-excite block focuses on recalibrating the importance of each channel, while the spatial squeeze-excite block focuses on recalibrating the importance of each spatial location.
Parameters#
- inputskeras.layers.Layer
Input tensor to the squeeze-excite block.
- ratioint
Reduction ratio for the channel squeeze-excite block. Default is 16.
- namestr, optional
Name for the squeeze-excite block. Default is None.
Returns#
- keras.layers.Layer
Output tensor for the squeeze-excite block.
References#
[Squeeze and Excitation Networks](https://arxiv.org/abs/1709.01507)
[Concurrent Spatial and Channel Squeeze & Excitation in Fully Convolutional Networks](https://arxiv.org/abs/1803.02579)