Enes commited on
Commit
cd64e68
·
verified ·
1 Parent(s): b45332b

Upload AutoLens EfficientNet-B2 artifact

Browse files
README.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: onnxruntime
3
+ pipeline_tag: image-classification
4
+ tags:
5
+ - computer-vision
6
+ - image-classification
7
+ - cars
8
+ - onnx
9
+ - safetensors
10
+ license: other
11
+ ---
12
+
13
+ # AutoLens EfficientNet-B2 Candidate
14
+
15
+ Current strongest CNN candidate for the AutoLens AI demo artifact lane. This repository is part of the AutoLens AI Yazlab 2 project.
16
+
17
+ ## Model
18
+
19
+ - Architecture: EfficientNet-B2
20
+ - Classes: 8 vehicle body types
21
+ - Source run: `baseline_0_efficientnet_b2_20260509_135313`
22
+ - Source checkpoint: `checkpoints/baseline_0_efficientnet_b2_20260509_135313/best-04-0.8994.ckpt`
23
+ - Export format: `model.safetensors` plus `metadata.json`, with ONNX for deployment
24
+
25
+ ## Classes
26
+
27
+ - SUV
28
+ - VAN
29
+ - STATION WAGON
30
+ - MICRO
31
+ - OPEN WHEEL / F1
32
+ - SEDAN
33
+ - HATCHBACK
34
+ - PICK UP
35
+
36
+ ## Preprocessing
37
+
38
+ - RGB input
39
+ - Resize: 256
40
+ - Center crop / model input: 224 x 224
41
+ - Mean: `[0.4429, 0.4354, 0.437]`
42
+ - Std: `[0.2456, 0.2421, 0.2449]`
43
+
44
+ ## Calibration
45
+
46
+ Post-hoc temperature scaling was fitted on the validation split only.
47
+
48
+ - Temperature: `1.779860`
49
+ - Validation samples: 3157
50
+ - NLL: 0.29796 -> 0.24160
51
+ - ECE: 0.03823 -> 0.01043
52
+ - Accuracy: 0.92398
53
+
54
+ No internal test or instructor final test images were used for calibration.
55
+
56
+ ## Artifact sizes
57
+
58
+ - `model.safetensors`: 29.722 MB
59
+ - `model.onnx`: 29.371 MB
60
+ - Project limit: 95 MB
61
+
62
+ ## Files
63
+
64
+ - `model.safetensors` — weights-only model artifact
65
+ - `metadata.json` — architecture, classes, preprocessing, source run, and artifact metadata
66
+ - `model.onnx` — ONNX Runtime inference artifact
67
+ - `model.simplified.onnx` — optional simplified ONNX graph when available
68
+ - `calibration.json` — temperature scaling metadata
69
+ - `size_report.json` / `size_check.json` — artifact size and ONNX smoke evidence
70
+
71
+ ## Intended use
72
+
73
+ Educational demo and report evidence for classifying uploaded vehicle images into the 8 AutoLens body-type classes.
74
+
75
+ ## Limitations
76
+
77
+ The dataset is assembled from public/open sources and may contain domain bias. Similar body styles such as hatchback, station wagon, and sedan can be ambiguous. The merged raw dataset is not redistributed in this model repository.
calibration.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "created_at": "2026-05-09T15:20:01.700775+00:00",
3
+ "method": "temperature_scaling",
4
+ "temperature": 1.779860258102417,
5
+ "fit_split": "artifacts/dataset/splits/val.csv",
6
+ "forbidden_splits": [
7
+ "internal_test",
8
+ "instructor_final_test"
9
+ ],
10
+ "num_samples": 3157,
11
+ "before": {
12
+ "nll": 0.2979576885700226,
13
+ "ece": 0.03823123127222061,
14
+ "accuracy": 0.9239784479141235,
15
+ "mean_confidence": 0.9612730741500854
16
+ },
17
+ "after": {
18
+ "nll": 0.24159657955169678,
19
+ "ece": 0.01043415255844593,
20
+ "accuracy": 0.9239784479141235,
21
+ "mean_confidence": 0.9190037250518799
22
+ }
23
+ }
metadata.json ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "artifact_format_version": 1,
3
+ "created_at": "2026-05-09T15:19:12.150358+00:00",
4
+ "source": {
5
+ "checkpoint_path": "checkpoints/baseline_0_efficientnet_b2_20260509_135313/best-04-0.8994.ckpt",
6
+ "checkpoint_sha256": "d54d26116c4a246f3a01eef941069d627432547c7be90bd5efa31d81ff43eb8c",
7
+ "run_id": "baseline_0_efficientnet_b2_20260509_135313",
8
+ "config_path": "configs/experiments/baseline_0_efficientnet_b2.yaml",
9
+ "metrics_csv": "checkpoints/baseline_0_efficientnet_b2_20260509_135313/metrics.csv",
10
+ "git": {
11
+ "commit": "d38a2a6f16b5579a0e0c6dd07ea4bb2c5c087429",
12
+ "dirty": "true"
13
+ }
14
+ },
15
+ "model": {
16
+ "architecture": "timm",
17
+ "model_name": "efficientnet_b2",
18
+ "num_classes": 8,
19
+ "pretrained_at_training": true,
20
+ "use_lora": false,
21
+ "lora_r": 8,
22
+ "lora_alpha": 16,
23
+ "lora_dropout": 0.1,
24
+ "lora_target_modules": null
25
+ },
26
+ "classes": {
27
+ "labels": [
28
+ "SUV",
29
+ "VAN",
30
+ "STATION WAGON",
31
+ "MICRO",
32
+ "OPEN WHEEL / F1",
33
+ "SEDAN",
34
+ "HATCHBACK",
35
+ "PICK UP"
36
+ ],
37
+ "class_to_idx": {
38
+ "SUV": 0,
39
+ "VAN": 1,
40
+ "STATION WAGON": 2,
41
+ "MICRO": 3,
42
+ "OPEN WHEEL / F1": 4,
43
+ "SEDAN": 5,
44
+ "HATCHBACK": 6,
45
+ "PICK UP": 7
46
+ },
47
+ "display_labels": [
48
+ "SUV",
49
+ "VAN",
50
+ "STATION WAGON",
51
+ "MICRO",
52
+ "OPEN WHEEL / F1",
53
+ "SEDAN",
54
+ "HATCHBACK",
55
+ "PICK UP"
56
+ ]
57
+ },
58
+ "preprocessing": {
59
+ "image_size": 224,
60
+ "resize_size": 256,
61
+ "crop_size": 224,
62
+ "mean": [
63
+ 0.4429,
64
+ 0.4354,
65
+ 0.437
66
+ ],
67
+ "std": [
68
+ 0.2456,
69
+ 0.2421,
70
+ 0.2449
71
+ ],
72
+ "color_mode": "RGB"
73
+ },
74
+ "data": {
75
+ "train_csv": "artifacts/dataset/splits/train.csv",
76
+ "val_csv": "artifacts/dataset/splits/val.csv",
77
+ "test_csv_reserved_not_used_for_calibration": "artifacts/dataset/splits/internal_test.csv",
78
+ "data_root": "datasets"
79
+ },
80
+ "training": {
81
+ "epoch": 4,
82
+ "global_step": 1980,
83
+ "learning_rate": 0.001,
84
+ "weight_decay": 0.0001,
85
+ "label_smoothing": 0.0,
86
+ "metrics_summary": {
87
+ "epoch": 17,
88
+ "test/acc": 0.9205047488212585,
89
+ "test/f1_macro": 0.9003689289093018,
90
+ "test/f1_weighted": 0.920499324798584,
91
+ "test/loss": 0.28352469205856323
92
+ }
93
+ },
94
+ "artifacts": {
95
+ "directory": "artifacts/export/efficientnet_b2_latest",
96
+ "safetensors": "artifacts/export/efficientnet_b2_latest/model.safetensors",
97
+ "metadata": "artifacts/export/efficientnet_b2_latest/metadata.json",
98
+ "onnx": "artifacts/export/efficientnet_b2_latest/model.onnx",
99
+ "calibration": "artifacts/export/efficientnet_b2_latest/calibration.json",
100
+ "safetensors_sha256": "1ac7acaa040e0a944d9deb2314067d7034b6e7460f3e30b79e8c03280ab423d4",
101
+ "safetensors_size_bytes": 31166288,
102
+ "size_report": "artifacts/export/efficientnet_b2_latest/size_report.json"
103
+ },
104
+ "license_notes": {
105
+ "base_model": "efficientnet_b2 pretrained backbone; verify upstream license before public publishing.",
106
+ "dataset": "Do not publish merged raw dataset images; document source links/counts instead."
107
+ }
108
+ }
model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9980bc05cfa3b3e6688001bb659ff9146c19b978ea6e106b008f745990cbefa1
3
+ size 30797958
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ac7acaa040e0a944d9deb2314067d7034b6e7460f3e30b79e8c03280ab423d4
3
+ size 31166288
model.simplified.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3476de4b63f25ecc1648a216c3bd5d3c8352f0369c221cdf462355a8a3c30000
3
+ size 30826165
size_check.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "max_size_mb": 95.0,
3
+ "results": [
4
+ {
5
+ "path": "artifacts/export/efficientnet_b2_latest/model.safetensors",
6
+ "exists": true,
7
+ "size_mb": 29.722,
8
+ "under_limit": true
9
+ },
10
+ {
11
+ "path": "artifacts/export/efficientnet_b2_latest/model.onnx",
12
+ "exists": true,
13
+ "size_mb": 29.371,
14
+ "under_limit": true
15
+ }
16
+ ],
17
+ "all_under_limit": true
18
+ }
size_report.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "max_size_mb": 95.0,
3
+ "artifacts": {
4
+ "safetensors": {
5
+ "path": "artifacts/export/efficientnet_b2_latest/model.safetensors",
6
+ "size_mb": 29.722,
7
+ "under_limit": true
8
+ },
9
+ "onnx": {
10
+ "path": "artifacts/export/efficientnet_b2_latest/model.onnx",
11
+ "size_mb": 29.371,
12
+ "under_limit": true
13
+ },
14
+ "simplified_onnx": {
15
+ "path": "artifacts/export/efficientnet_b2_latest/model.simplified.onnx",
16
+ "size_mb": 29.398,
17
+ "under_limit": true
18
+ }
19
+ },
20
+ "onnxruntime_smoke": {
21
+ "provider": "CPUExecutionProvider",
22
+ "input_name": "image",
23
+ "output_shape": [
24
+ 1,
25
+ 8
26
+ ]
27
+ },
28
+ "simplification": {
29
+ "attempted": true,
30
+ "ok": true,
31
+ "path": "artifacts/export/efficientnet_b2_latest/model.simplified.onnx"
32
+ }
33
+ }