|
Algorithm 1: Algorithm for CBAM attention mechanism |
|
Input: Network intermediate volume characteristics map |
|
Output: Attention maps |
| 1: CAM performs a spatially informative aggregation operation on the feature map:
|
| 2: The channel attention map is multiplied at the pixel level with the original image:
|
| 3: SAM performs feature focus and dimensionality reduction operations on feature maps:
|
| 4: Spatial Attention Maps are multiplied by the original map at the pixel level:
|
| 5: Output CBAM processed feature maps. |