AhmadJeddi/Resnet-DCBAM
AhmadJeddi/Resnet-DCBAM has 43 GitHub stars and 0 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-15 00:36 UTC. Last push 2026-07-26.
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
A clean and modular PyTorch implementation of DCBAM (Dual-Channel & Spatial Attention) integrated into a custom ResNet50 backbone. Includes attention modules, pretrained weight loading, layer freezing, full examples, and production-ready architecture.
Machine LearningREADME.md
OriginalResNet-DCBAM
A clean, GitHub-ready PyTorch implementation of DCBAM (Dual Channel + Spatial Attention) and a ResNet50 backbone with optional DCBAM integration. This repository contains typed, well-documented modules, an example, packaging files, and a clear README.
Project layout
resnet_dcbam/
├─ LICENSE
├─ README.md (this file)
├─ requirements.txt
├─ pyproject.toml
├─ .gitignore
├─ models/
│ ├─ __init__.py
│ ├─ attention/
│ │ └─ dcbam.py
│ └─ backbone/
│ └─ resnet_dcbam.py
├─ examples/
│ └─ test_backbone.py
└─ scripts/
└─ package_check.py
Quick install
python -m venv .venv
source .venv/bin/activate # or .venv\Scripts\activate on Windows
pip install -r requirements.txt
Design decisions
- Modular structure:
models.attention.dcbamis independent and reusable. - Backbone:
models.backbone.resnet_dcbamencapsulates the ResNet50-like backbone and uses pretrained weights where possible. - Typing & docstrings: all public functions/classes include type hints and clear docstrings.
- Tests / examples:
examples/test_backbone.pydemonstrates usage and verifies shapes. - License: MIT.
Files (full contents)
See the models/, examples/ and scripts/ folders for implementation and usage examples.