Browse by type
pytorch for Self-attention、Non-local、SE、SK、CBAM、DANet
According to the different application domains of the attention mechanism, that is, the different ways and positions of attention weights are applied, the article divides the attention mechanism into spatial domain, channel domain and hybrid domain, and introduces some advanced aspects of these different attentions. Attention model, carefully analyzed their design methods and application fields, and finally proved the effectiveness of these attention mechanisms and the improvement of the results brought by CV tasks with experimental methods.
1.1 Self-Attention

1.2 Non-local Attention

2.1 SENet

2.2 SKNet

3.1 CBAM

3.2 DANet


reference Self-Attention Non-local Attention SENet SKNet CBAM DANet
$ claude mcp add Attention-mechanism-implementation \
-- python -m otcore.mcp_server <graph>