CNN Project 07 · ONNX Runtime Web · GitHub Pages

AlexNet-Style CNN vs MobileNetV2 Transfer Learning

Run the selected model entirely in your browser and review the same evaluation evidence used to choose it: accuracy, macro F1, ROC-AUC, calibration, robustness, latency, and model size.

Loading project metadata…
Loading evaluation results…

01

Select an image

Load an image to begin.

02

Prediction

The ranked probabilities will appear here.

03

Model evaluation dashboard

Test-set results generated by the local RTX experiment. The deployment model is selected using macro F1 while respecting the browser model-size limit.

Loading selected model…
Selected for deployment

Evaluation results are loading.

Controlled model comparison

All candidates use the same stratified split, test set, seed, and evaluation framework.

Model Accuracy Macro F1 Weighted F1 Top-2 ROC-AUC ECE Size Latency
Loading model comparison…

Selected model by class

Precision, recall, and F1 reveal performance hidden by overall accuracy.

ClassPrecisionRecallF1Support
Loading class metrics…

Robustness checks

Macro F1 under controlled image corruptions.

Loading robustness results…

How to interpret these metrics

Macro F1

Computes F1 independently for each class and averages the results, so the larger nature class cannot dominate the score.

Balanced accuracy

Averages recall across classes and is more informative than raw accuracy when class frequencies differ.

ROC-AUC

Measures how well predicted probabilities separate each class from the others across thresholds.

Expected calibration error

Measures the gap between confidence and observed correctness. Lower is better.

04

What this project proves

From scratch

Simple CNN and AlexNet-style CNN architectures are trained directly on the target data.

Transfer learning

Frozen and partially fine-tuned MobileNetV2 models test practical feature reuse.

Evaluation

Macro F1, calibration, robustness, error analysis, Grad-CAM, latency, and model size determine the final model.

Deployment

The selected PyTorch model is exported to ONNX and served through ONNX Runtime Web on GitHub Pages.

05

Responsible use and dataset limitation