Neelesh-Babu commited on
Commit
cda4eba
·
verified ·
1 Parent(s): e9fddff

EIDORA schema-v3 validated ONNX release

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ validation/photo.png filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # AlexNet Image Light
2
+
3
+ AlexNet Image Light is a light image embedding model kept mainly as a reproducible baseline for comparing how older CNN features organize cultural image collections.
4
+
5
+ ## Source and provenance
6
+
7
+ - Base model/checkpoint: `torchvision/alexnet-imagenet1k-v1`
8
+ - Source: https://pytorch.org/vision/stable/models/generated/torchvision.models.alexnet.html
9
+ - Original model: AlexNet
10
+ - Architecture paper: https://proceedings.neurips.cc/paper/2012/hash/c399862d3b9d6b76c8436e924a68c45b-Abstract.html
11
+ - Training data: ImageNet-1K
12
+
13
+ ## EIDORA package
14
+
15
+ - Package schema: `3` (Desktop preparation implementation `1`)
16
+ - Declared providers: `CPUExecutionProvider`
17
+ - Provider declarations require certification in validation-report.json before publication.
18
+ - Preparation runs in EIDORA; exposed defaults are recommended, alternatives are not equivalent-quality claims.
19
+ - Modality: `image`
20
+ - Embedding dimensions: `4096`
21
+ - Normalized: `true`
22
+ - Similarity: `cosine`
23
+
24
+ ## Preparation
25
+
26
+ ```yaml
27
+ width: 224
28
+ height: 224
29
+ layout: NCHW
30
+ resize: short_edge_crop
31
+ interpolation: bilinear
32
+ rescale: 0.00392156862745098
33
+ mean:
34
+ - 0.485
35
+ - 0.456
36
+ - 0.406
37
+ std:
38
+ - 0.229
39
+ - 0.224
40
+ - 0.225
41
+ alpha_background:
42
+ - 0
43
+ - 0
44
+ - 0
45
+ short_edge: 256
46
+ parameters:
47
+ resize:
48
+ default: short_edge_crop
49
+ choices:
50
+ - stretch
51
+ - fill_crop
52
+ - fit_pad
53
+ - short_edge_crop
54
+ interpolation:
55
+ default: bilinear
56
+ choices:
57
+ - nearest
58
+ - bilinear
59
+ - bicubic
60
+ - lanczos
61
+ crop_position:
62
+ default: center
63
+ short_edge:
64
+ default: 256
65
+ minimum: 224
66
+ maximum: 2048
67
+ ```
68
+
69
+ ## Intended use
70
+
71
+ - Baseline comparisons against newer image embedding models.
72
+ - Teaching, debugging, and validating the EIDORA ONNX conversion workflow.
73
+ - Projects where compatibility and a simple architecture matter more than representation quality.
74
+
75
+ ## Limitations
76
+
77
+ AlexNet is an older supervised ImageNet model. Its embedding geometry reflects ImageNet categories and may not align with culturally meaningful distinctions. Use it mainly as a baseline and compare it with ResNet, DINO, and CLIP on the target collection.
78
+
79
+ ## License and attribution
80
+
81
+ Converted from TorchVision AlexNet weights; verify pretrained-weight redistribution terms before publishing the ONNX artifact.
82
+
83
+ ## Citation
84
+
85
+ ```bibtex
86
+ @inproceedings{krizhevsky2012imagenet,
87
+ title={ImageNet Classification with Deep Convolutional Neural Networks},
88
+ author={Krizhevsky, Alex and Sutskever, Ilya and Hinton, Geoffrey E.},
89
+ booktitle={Advances in Neural Information Processing Systems},
90
+ year={2012}
91
+ }
92
+ ```
config.yaml ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version: 3
2
+ id: eidora/image-alexnet-imagenet-light
3
+ name: AlexNet Image Light
4
+ version: 0.1.0
5
+ modality: image
6
+ license: other
7
+ bibtex: "@inproceedings{krizhevsky2012imagenet,\n title={ImageNet Classification\
8
+ \ with Deep Convolutional Neural Networks},\n author={Krizhevsky, Alex and Sutskever,\
9
+ \ Ilya and Hinton, Geoffrey E.},\n booktitle={Advances in Neural Information Processing\
10
+ \ Systems},\n year={2012}\n}"
11
+ compatibility:
12
+ min_eidora_version: 0.1.0
13
+ artifacts:
14
+ - path: conversion_report.json
15
+ sha256: a7f417fc4d8969b4682b96fda6ad6863cebab4f89adb48d1998bfde6b926abbd
16
+ role: asset
17
+ - path: model.onnx
18
+ sha256: deea3812842a09731d3a9ddc88dcace1049d1b39cafd25a902a39437b9b239a5
19
+ role: graph
20
+ - path: validation.yaml
21
+ sha256: 18b12ddef178c1cf77334dde9e101c228c4b8c88ade6ed2f0eef3fc4d8f2bbb4
22
+ role: asset
23
+ - path: validation/embedding.npy
24
+ sha256: 990d9316a16850630befdd0ec9cfe5584e6ac441302d87fb68a7c4adde2cfa33
25
+ role: asset
26
+ - path: validation/photo.png
27
+ sha256: 1d70a03fc99c16e3aa674dbb9c7a8d0c127b45e1cf416118131451932b2f2389
28
+ role: asset
29
+ - path: validation/pixels.npy
30
+ sha256: f559af24acc89a03d8d1b1b59037d301fcb4d77ab8bea2e0e64d355a226abc8b
31
+ role: asset
32
+ - path: validation/random_image.npy
33
+ sha256: 2e7b24b32c98c0ae8c05f508b9b037c6c3e51b0ba35405e5f2594604c3acbf48
34
+ role: asset
35
+ - path: validation/source_parity.json
36
+ sha256: 7b5f9e26cae0535eebff345800ffab3c5aaf2d9b4f228a6e4a71cf2e8bbf9756
37
+ role: asset
38
+ runtime:
39
+ graph: model.onnx
40
+ inputs:
41
+ - name: pixel_values
42
+ source: pixels
43
+ dtype: float32
44
+ shape:
45
+ - batch
46
+ - 3
47
+ - 224
48
+ - 224
49
+ output:
50
+ name: embedding
51
+ dtype: float32
52
+ shape:
53
+ - batch
54
+ - 4096
55
+ execution_providers:
56
+ - CPUExecutionProvider
57
+ preparation:
58
+ width: 224
59
+ height: 224
60
+ layout: NCHW
61
+ resize: short_edge_crop
62
+ interpolation: bilinear
63
+ rescale: 0.00392156862745098
64
+ mean:
65
+ - 0.485
66
+ - 0.456
67
+ - 0.406
68
+ std:
69
+ - 0.229
70
+ - 0.224
71
+ - 0.225
72
+ alpha_background:
73
+ - 0
74
+ - 0
75
+ - 0
76
+ short_edge: 256
77
+ parameters:
78
+ resize:
79
+ default: short_edge_crop
80
+ choices:
81
+ - stretch
82
+ - fill_crop
83
+ - fit_pad
84
+ - short_edge_crop
85
+ interpolation:
86
+ default: bilinear
87
+ choices:
88
+ - nearest
89
+ - bilinear
90
+ - bicubic
91
+ - lanczos
92
+ crop_position:
93
+ default: center
94
+ short_edge:
95
+ default: 256
96
+ minimum: 224
97
+ maximum: 2048
98
+ resize_rounding: truncate
99
+ embedding:
100
+ dimensions: 4096
101
+ normalized: true
102
+ similarity: cosine
103
+ metadata:
104
+ summary: 'Light: classic CNN baseline for fast comparison and first-pass embedding
105
+ experiments.'
106
+ trained_on: ImageNet-1K
107
+ feature_type: embedding
108
+ pooling: second fully-connected layer after ReLU
109
+ group:
110
+ id: image
111
+ label: Image Models
112
+ order: 10
113
+ provenance:
114
+ base_model: torchvision/alexnet-imagenet1k-v1
115
+ source_repository: https://pytorch.org/vision/stable/models/generated/torchvision.models.alexnet.html
116
+ original_name: AlexNet
117
+ original_model_url: https://docs.pytorch.org/vision/stable/models/generated/torchvision.models.alexnet.html
118
+ paper_title: ImageNet Classification with Deep Convolutional Neural Networks
119
+ paper_url: https://proceedings.neurips.cc/paper/2012/hash/c399862d3b9d6b76c8436e924a68c45b-Abstract.html
120
+ training_data: ImageNet-1K
121
+ upstream_license: TorchVision software is BSD-3-Clause. TorchVision states that
122
+ pretrained models may have their own terms derived from training data; weight
123
+ redistribution must be reviewed before public release.
124
+ authors:
125
+ - Alex Krizhevsky
126
+ - Ilya Sutskever
127
+ - Geoffrey E. Hinton
128
+ source_weights: IMAGENET1K_V1
129
+ source_weights_url: https://download.pytorch.org/models/alexnet-owt-7be5be79.pth
130
+ exported_opset: 17
131
+ export_date: '2026-10-21'
132
+ exporter_version: eidora-onnx 1.0.0
conversion_report.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "converter": "torchvision_alexnet",
3
+ "embedding_dimensions": 4096,
4
+ "input_name": "pixel_values",
5
+ "opset": 17,
6
+ "output_name": "embedding",
7
+ "schema_version": 1,
8
+ "source_framework": "pytorch",
9
+ "source_vs_onnx": {
10
+ "atol": 0.0001,
11
+ "max_abs_error": 1.043081283569336e-07,
12
+ "mean_abs_error": 1.883620370790595e-09,
13
+ "onnxruntime_version": "1.30.0",
14
+ "rtol": 0.001,
15
+ "status": "passed"
16
+ },
17
+ "torch_version": "2.14.0+cu130"
18
+ }
model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:deea3812842a09731d3a9ddc88dcace1049d1b39cafd25a902a39437b9b239a5
3
+ size 228019732
validation-report.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "desktop_version": "0.2.0",
3
+ "schema_version": 3,
4
+ "preparation_version": 2,
5
+ "providers": {
6
+ "CPUExecutionProvider": {
7
+ "status": "passed",
8
+ "fixture_runs": 19,
9
+ "scope": "session provider chain; CPU graph-node support allowed",
10
+ "environment": {
11
+ "onnxruntime": "1.31.0",
12
+ "platform": "Linux-7.0.0-38-generic-x86_64-with-glibc2.43",
13
+ "python": "3.13.16 (main, Oct 9 2026, 15:23:36) [Clang 22.1.3 ]"
14
+ }
15
+ }
16
+ },
17
+ "environment": {
18
+ "onnxruntime": "1.31.0",
19
+ "platform": "Linux-7.0.0-38-generic-x86_64-with-glibc2.43",
20
+ "python": "3.13.16 (main, Oct 9 2026, 15:23:36) [Clang 22.1.3 ]"
21
+ },
22
+ "publication_ready": true,
23
+ "validation_sha256": "df0c747d8cd0734a8dcad20da6afe6f74d437b51e431845f633577e714074167",
24
+ "contract_sha256": "65c20b19452a5cedc6874434d8379a280d6c9b4343a4deab6d9772d93ee8d6b0",
25
+ "package_sha256": "5dbe16d8f71ed8ce5c6507a74faeed81a02b3de3d98e1fe588c54ed4ad839093"
26
+ }
validation.yaml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diagnostic_fixtures:
2
+ - id: random_image
3
+ path: validation/random_image.npy
4
+ input_shape:
5
+ - 1
6
+ - 3
7
+ - 224
8
+ - 224
9
+ expected_shape:
10
+ - 1
11
+ - 4096
12
+ seed: 17
13
+ fixtures:
14
+ - modality: image
15
+ path: validation/photo.png
16
+ expected_tensors:
17
+ pixel_values: validation/pixels.npy
18
+ expected_vectors: validation/embedding.npy
19
+ note: Publication requires real-media fixtures with source-reference expected_tensors
20
+ and expected_vectors, copied using assets. Synthetic diagnostic fixtures do not
21
+ certify compatibility.
validation/embedding.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:990d9316a16850630befdd0ec9cfe5584e6ac441302d87fb68a7c4adde2cfa33
3
+ size 16512
validation/photo.png ADDED

Git LFS Details

  • SHA256: 1d70a03fc99c16e3aa674dbb9c7a8d0c127b45e1cf416118131451932b2f2389
  • Pointer size: 131 Bytes
  • Size of remote file: 303 kB
validation/pixels.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f559af24acc89a03d8d1b1b59037d301fcb4d77ab8bea2e0e64d355a226abc8b
3
+ size 602240
validation/random_image.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e7b24b32c98c0ae8c05f508b9b037c6c3e51b0ba35405e5f2594604c3acbf48
3
+ size 602240
validation/source_parity.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "alexnet",
3
+ "source_checkpoint": "IMAGENET1K_V1",
4
+ "image_sha256": "1d70a03fc99c16e3aa674dbb9c7a8d0c127b45e1cf416118131451932b2f2389",
5
+ "onnx_sha256": "deea3812842a09731d3a9ddc88dcace1049d1b39cafd25a902a39437b9b239a5",
6
+ "preprocessing_max_abs_error": 7.152557373046875e-07,
7
+ "embedding_max_abs_error": 1.7695128917694092e-07,
8
+ "cosine_similarity": 1.0000001192092896,
9
+ "output_shape": [
10
+ 1,
11
+ 4096
12
+ ],
13
+ "source": "TorchVision pretrained model",
14
+ "status": "passed"
15
+ }