Jongchan/attention-module
Official PyTorch code for "BAM: Bottleneck Attention Module (BMVC2018)" and "CBAM: Convolutional Block Attention Module (ECCV2018)" observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2887
- days_rel: n/a
- days_push: 1273
- n_releases_24m: 0
Adoption not part of the score
2230 stars · 405 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Official PyTorch implementation of two attention modules for convolutional neural networks: BAM (Bottleneck Attention Module) and CBAM (Convolutional Block Attention Module). It includes ImageNet training/validation scripts, ResNet50 examples, and pretrained checkpoints.
Use cases
- add attention modules to a CNN in PyTorch
- reproduce CBAM ImageNet training results
- get pretrained ResNet50+CBAM weights
- compare BAM vs CBAM attention blocks
- plug attention into ResNet for image classification
When to choose
- you need the official reference implementation of BAM or CBAM
- you want pretrained checkpoints to validate an attention-augmented ResNet
- you're doing computer vision research on attention mechanisms
When to avoid
- you need a maintained library with recent PyTorch support
- you want plug-and-play attention for non-ResNet architectures without adaptation
- you need production training pipelines rather than research code
Facets
library · maturity maintenance
machine-learning deep-learning computer-vision deep-learning image-processing python pytorch attention-mechanism cbam bam image-classification research-code resnet linux gpu
1 source
- readme: https://github.com/Jongchan/attention-module · fetched 2026-08-28 · 76f8fde009d8
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Jongchan/attention-module | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="Jongchan/attention-module")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem