Methods › Computer Vision › Feature Extractors › Spatial Attention Module (ThunderNet)
Spatial Attention Module (ThunderNet)
Introduced by Zheng Qin et al. in ThunderNet: Towards Real-time Generic Object Detection
archive 2025-07-28 Description, source and code snippet are the archive's method entry.
Spatial Attention Module (SAM) is a feature extraction module for object detection used in ThunderNet.
The ThunderNet SAM explicitly re-weights the feature map before RoI warping over the spatial dimensions. The key idea of SAM is to use the knowledge from RPN to refine the feature distribution of the feature map. RPN is trained to recognize foreground regions under the supervision of ground truths. Therefore, the intermediate features in RPN can be used to distinguish foreground features from background features. SAM accepts two inputs: the intermediate feature map from RPN ℱᴿᴾᴺ and the thin feature map from the Context Enhancement Module ℱ^(CEM). The output of SAM ℱ^(SAM) is defined as:
ℱ^(SAM) = ℱ^(CEM) * sigmoid(θ(ℱᴿᴾᴺ))
Here θ(·) is a dimension transformation to match the number of channels in both feature maps. The sigmoid function is used to constrain the values within [0, 1]. At last, ℱ^(CEM) is re-weighted by the generated feature map for better feature distribution. For computational efficiency, we simply apply a 1×1 convolution as θ(·), so the computational cost of CEM is negligible. The Figure to the right shows the structure of SAM.
SAM has two functions. The first one is to refine the feature distribution by strengthening foreground features and suppressing background features. The second one is to stabilize the training of RPN as SAM enables extra gradient flow from R-CNN subnet to RPN. As a result, RPN receives additional supervision from RCNN subnet, which helps the training of RPN.
Papers archive 2025-07-28
4 shown of 4, newest first. Repository counts are the archive's code-links table. A Syntology line states what Syntology ran from that paper's harvested code; it is per sample and not a correctness claim.
-
Real Time Egocentric Segmentation for Video-self Avatar in Mixed Reality 4 Jul 2022 · 0 repositories · arXiv:2207.01296
-
Egocentric Human Segmentation for Mixed Reality 25 May 2020 · 0 repositories · arXiv:2005.12074
-
ThunderNet: Towards Real-Time Generic Object Detection on Mobile Devices 1 Oct 2019 · 0 repositories
-
ThunderNet: Towards Real-time Generic Object Detection 28 Mar 2019 · 3 repositories · arXiv:1903.11752
Tasks archive 2025-07-28
6 tasks the archive attaches to papers tagged with this method, by distinct papers. A task without a page in the catalog is plain text.
| Task | Papers |
|---|---|
| Mixed Reality | 2 |
| Object Detection | 2 |
| Segmentation | 2 |
| Semantic Segmentation | 2 |
| object-detection | 2 |
| Object | 1 |
Usage over time archive 2025-07-28
Components: the archive holds no method-to-method composition, so PwC's Components table cannot be rebuilt; the Papers list carries no Results column for the same reason (the archive does not join its leaderboard rows to method tags).
Categories archive 2025-07-28
Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections