YOLO12s + AMPDC + Real-Pair PairAlign on ACDC
This repository contains the A5 ablation model from the ATOD-Generalization project.
Architecture
Base detector:
YOLO12s
Added inference module:
AMPDC at P3, P4 and P5.
Training-only auxiliary method:
Real-Pair PairAlign using aligned adverse-weather and normal-reference ACDC image pairs.
PairAlign is used only during training and adds no inference parameters or inference layers.
Training protocol
Dataset: ACDC
Training epochs: 100
Image size: 640
Detection batch size: 8
Pair batch size: 2
Optimizer: AdamW
Initial learning rate: 0.001
Weight decay: 0.0005
Seed: 42
Detection branch: AMP
PairAlign branch: FP32
PairAlign target lambda: 0.5
PairAlign warmup:
epoch 1: 0.1
epoch 2: 0.2
epoch 3: 0.3
epoch 4: 0.4
epoch 5 onward: 0.5
ACDC validation results
Precision: 0.552374
Recall: 0.358351
mAP50: 0.373977
mAP50-95: 0.220946
Complexity
Unfused parameters: 9,295,836
Expected GFLOPs at 640: 23.5127
PairAlign inference parameters: 0
PairAlign inference layers: 0
Per-class mAP50-95
person: 0.195187
rider: 0.070811
car: 0.522833
truck: 0.218689
bus: 0.209391
train: 0.335708
motorcycle: 0.132628
bicycle: 0.082321
Files
best.pt
Official best checkpoint.
official_val_metrics.json
Canonical ACDC validation metrics.
results.csv
Full 100-epoch training history.
a5_real_pairalign_spec.json
Final A5 experiment specification.
a5_pairalign_gradient_calibration.json
Gradient-based lambda calibration evidence.
a5_lambda05_stress_smoke.json
Full-strength lambda 0.5 numerical stability test.
ampdc.py
AMPDC implementation required by the custom architecture.
pairalign.py
Training-only Real-Pair PairAlign loss implementation.
Loading note
The checkpoint contains a custom AMPDC module.
Register AMPDCBlock with Ultralytics before loading best.pt.
PairAlign is not part of the inference graph.
Experimental interpretation
This is an ablation checkpoint.
Under the current controlled single-seed ACDC evaluation, A5 achieved:
mAP50 = 0.373977
mAP50-95 = 0.220946
The repository preserves the checkpoint and experiment artifacts for reproducibility.