プロジェクト
GitHubで見る
AhmadJeddi/Resnet-DCBAM
概要
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.
AI・機械学習計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- -1
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルResNet-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.
関連プロジェクトを探す
読み込み中…