Skip to main content

EfficientNet-B0

EfficientNetGalaxy wraps torchvision's EfficientNet-B0 (ImageNet weights) and replaces the classifier with Dropout(0.3) → Linear(1280→10). The Grad-CAM target is the last block of features.

Key results​

82.7%
Balanced accuracy
fine-tuned checkpoint · test set
84.5%
Accuracy
test set, 2,660 images
84.5%
Best validation
phase 2 (full fine-tuning)
Provenance. Model scores in this section are copied from the output cells of the AstroVision notebooks (and, for DINOv2 per-class recall, read from an exported figure). The documentation data pack contains no metrics file for them, so they cannot be re-derived from the pack; the cell of origin is listed for each value in _facts/astrovision/FACTS_INDEX.md §3 and shown when hovering over a number.

Two-phase transfer learning​

PhaseTrainableEpochsLearning rateBest validation balanced acc.
1 — warm-upclassifier head only (freeze_backbone=True)51e-333.0%
2 — fine-tuningwhole network251e-484.5%

The warm-up checkpoint (efficientnet_galaxy10_warmup_best.pt) only initialises phase 2 and is not the reference model. The reference is efficientnet_galaxy10_finetune_best.pt, evaluated in the results notebook. Both phases use the shared trainer.train loop (label smoothing 0.1, AdamW, cosine schedule).

Per class​

Class (recall, test)SimpleCNNEfficientNet-B0
Disturbed0.110.44
Cigar Shaped Smooth0.120.83
Unbarred Loose Spiral0.610.76
Edge-on without Bulge0.750.96
Full per-class table: Morphology Classes page.

Pretraining on ImageNet roughly closes the gap on the rare classes: Cigar Shaped Smooth goes from 0.12 to 0.83. Disturbed remains the weakest class at 0.44.

◎
Grad-CAM — EfficientNet-B0
Grad-CAM — EfficientNet-B0
Heat maps from the last feature block.
◎
Grad-CAM on test errors and successes
Grad-CAM on test errors and successes
Results notebook.
◎
Worst errors
Worst errors
Most confident misclassifications.
◎
Metrics by class
Metrics by class
Precision, recall and F1 per class.