tyluan commited on
Commit
4e2b86f
·
verified ·
1 Parent(s): 3844288

Add ONNX graphs: ISIC2018.onnx, ISIC2018.onnx.config.json, ISIC2018.onnx.provenance.json (tools/hf_onnx_export.py)

Browse files
ISIC2018.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d415bf7624db9730710c05e560efd88eda643fad6a16acbac6bd45f3642e61eb
3
+ size 141138944
ISIC2018.onnx.config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema": "medotter/model-sidecar/v1",
3
+ "model": {
4
+ "graph": "onnx",
5
+ "args": {
6
+ "input_channel": 3,
7
+ "num_classes": 1
8
+ }
9
+ },
10
+ "inference": {
11
+ "normalize": {
12
+ "mean": [
13
+ 0.485,
14
+ 0.456,
15
+ 0.406
16
+ ],
17
+ "std": [
18
+ 58.395,
19
+ 57.12,
20
+ 57.375
21
+ ]
22
+ },
23
+ "scale": 255.0,
24
+ "size": [
25
+ 256,
26
+ 256
27
+ ],
28
+ "threshold": 0.5
29
+ }
30
+ }
ISIC2018.onnx.provenance.json ADDED
@@ -0,0 +1,231 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema": "medotter/graph-provenance/v1",
3
+ "source": {
4
+ "file": "ISIC2018.pth",
5
+ "sha256": "85c7628e8ef0c7ac150fa2833e1659ff6d19dab6b550f45389a3d05a768aa630",
6
+ "reference": "ISIC2018.pth",
7
+ "model": "CSCAUNet",
8
+ "declaration_source": "sidecar",
9
+ "declaration": [
10
+ {
11
+ "file": "ISIC2018.pth.config.json",
12
+ "sha256": "bb94ef5531c1026c520e32e123dfa3a0df12c786a7cb400404daf8e925cfdb42"
13
+ }
14
+ ]
15
+ },
16
+ "graph": {
17
+ "kind": "onnx",
18
+ "file": "ISIC2018.onnx",
19
+ "sha256": "d415bf7624db9730710c05e560efd88eda643fad6a16acbac6bd45f3642e61eb",
20
+ "bytes": 141138944,
21
+ "opset": 17,
22
+ "dynamic": true,
23
+ "reason": "dynamic_verified",
24
+ "input": "image",
25
+ "output": "logits",
26
+ "input_channel": 3,
27
+ "num_classes": 1,
28
+ "size": [
29
+ 256,
30
+ 256
31
+ ]
32
+ },
33
+ "exporter": {
34
+ "api": "torch.onnx.export",
35
+ "name": "torchscript",
36
+ "dynamo": false,
37
+ "producer": "pytorch 2.13.0",
38
+ "torch": "2.13.0+cpu",
39
+ "onnx": "1.22.0",
40
+ "onnxruntime": "1.29.0"
41
+ },
42
+ "attempts": [
43
+ {
44
+ "mode": "dynamic",
45
+ "exporter": "torchscript",
46
+ "outcome": "kept",
47
+ "reason": null,
48
+ "error": null,
49
+ "verification": [
50
+ {
51
+ "shape": [
52
+ 1,
53
+ 3,
54
+ 256,
55
+ 256
56
+ ],
57
+ "torch": "ok",
58
+ "graph": "ok",
59
+ "max_abs_diff": 1.1240984669916758e+19,
60
+ "scale": 1.2646903269494531e+24,
61
+ "rel_diff": 8.888329759768959e-06
62
+ },
63
+ {
64
+ "shape": [
65
+ 1,
66
+ 3,
67
+ 320,
68
+ 320
69
+ ],
70
+ "torch": "ok",
71
+ "graph": "ok",
72
+ "max_abs_diff": 3.3551817223910195e+18,
73
+ "scale": 8.874232277182729e+22,
74
+ "rel_diff": 3.780813503177964e-05
75
+ },
76
+ {
77
+ "shape": [
78
+ 1,
79
+ 3,
80
+ 224,
81
+ 224
82
+ ],
83
+ "torch": "ok",
84
+ "graph": "ok",
85
+ "max_abs_diff": 3342336.0,
86
+ "scale": 540799139840.0,
87
+ "rel_diff": 6.180364859657244e-06
88
+ },
89
+ {
90
+ "shape": [
91
+ 1,
92
+ 3,
93
+ 512,
94
+ 512
95
+ ],
96
+ "torch": "ok",
97
+ "graph": "ok",
98
+ "max_abs_diff": 1.7985575471866813e+21,
99
+ "scale": 1.1946216608575526e+26,
100
+ "rel_diff": 1.5055457356227716e-05
101
+ },
102
+ {
103
+ "shape": [
104
+ 2,
105
+ 3,
106
+ 256,
107
+ 256
108
+ ],
109
+ "torch": "ok",
110
+ "graph": "ok",
111
+ "max_abs_diff": 2.7093655358260904e+20,
112
+ "scale": 5.900973925677628e+24,
113
+ "rel_diff": 4.59138706584772e-05
114
+ }
115
+ ]
116
+ }
117
+ ],
118
+ "verification": [
119
+ {
120
+ "shape": [
121
+ 1,
122
+ 3,
123
+ 256,
124
+ 256
125
+ ],
126
+ "torch": "ok",
127
+ "graph": "ok",
128
+ "max_abs_diff": 1.1240984669916758e+19,
129
+ "scale": 1.2646903269494531e+24,
130
+ "rel_diff": 8.888329759768959e-06
131
+ },
132
+ {
133
+ "shape": [
134
+ 1,
135
+ 3,
136
+ 320,
137
+ 320
138
+ ],
139
+ "torch": "ok",
140
+ "graph": "ok",
141
+ "max_abs_diff": 3.3551817223910195e+18,
142
+ "scale": 8.874232277182729e+22,
143
+ "rel_diff": 3.780813503177964e-05
144
+ },
145
+ {
146
+ "shape": [
147
+ 1,
148
+ 3,
149
+ 224,
150
+ 224
151
+ ],
152
+ "torch": "ok",
153
+ "graph": "ok",
154
+ "max_abs_diff": 3342336.0,
155
+ "scale": 540799139840.0,
156
+ "rel_diff": 6.180364859657244e-06
157
+ },
158
+ {
159
+ "shape": [
160
+ 1,
161
+ 3,
162
+ 512,
163
+ 512
164
+ ],
165
+ "torch": "ok",
166
+ "graph": "ok",
167
+ "max_abs_diff": 1.7985575471866813e+21,
168
+ "scale": 1.1946216608575526e+26,
169
+ "rel_diff": 1.5055457356227716e-05
170
+ },
171
+ {
172
+ "shape": [
173
+ 2,
174
+ 3,
175
+ 256,
176
+ 256
177
+ ],
178
+ "torch": "ok",
179
+ "graph": "ok",
180
+ "max_abs_diff": 2.7093655358260904e+20,
181
+ "scale": 5.900973925677628e+24,
182
+ "rel_diff": 4.59138706584772e-05
183
+ }
184
+ ],
185
+ "exported_at": "2026-09-06T21:12:37+00:00",
186
+ "release": {
187
+ "repo": "MedOtter/CSCAUNet",
188
+ "revision": "54f5ecbe759e8b4912e426f99e1c678e2d252cf5",
189
+ "pth_file": "ISIC2018.pth",
190
+ "pth_sha256": "85c7628e8ef0c7ac150fa2833e1659ff6d19dab6b550f45389a3d05a768aa630",
191
+ "sidecar_sha256": "402e4863796b2530120ab02b07d1cb1732e28237a9d98398dec1bbc4a73d5594",
192
+ "sidecar_source": "existing",
193
+ "group": "redistributable",
194
+ "reference_check": {
195
+ "dataset": "ISIC2018",
196
+ "split": "val",
197
+ "samples": 4,
198
+ "status": "pass",
199
+ "sizes": [
200
+ {
201
+ "size": [
202
+ 256,
203
+ 256
204
+ ],
205
+ "predict_masks_equal": 0,
206
+ "pixels": 262144,
207
+ "disagreeing_pixels": 1,
208
+ "unexplained_pixels": 0,
209
+ "max_abs_diff": 0.0005052089691162109,
210
+ "scale": 45.20143508911133,
211
+ "rel_diff": 1.117683472040718e-05
212
+ },
213
+ {
214
+ "size": [
215
+ 320,
216
+ 320
217
+ ],
218
+ "predict_masks_equal": 0,
219
+ "pixels": 409600,
220
+ "disagreeing_pixels": 1,
221
+ "unexplained_pixels": 0,
222
+ "max_abs_diff": 0.000827789306640625,
223
+ "scale": 57.837921142578125,
224
+ "rel_diff": 1.4312224407236472e-05
225
+ }
226
+ ]
227
+ },
228
+ "tool": "tools/hf_onnx_export.py",
229
+ "stamped_at": "2026-09-06T21:16:51+00:00"
230
+ }
231
+ }