tyluan commited on
Commit
323987c
·
verified ·
1 Parent(s): 0069039

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

Browse files
Files changed (3) hide show
  1. BUSI.onnx +3 -0
  2. BUSI.onnx.config.json +30 -0
  3. BUSI.onnx.provenance.json +229 -0
BUSI.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:456eb2eaaf3521af2eeab4e7c5e53658ffa3929455697b5343992a567ef1066c
3
+ size 124133727
BUSI.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
+ }
BUSI.onnx.provenance.json ADDED
@@ -0,0 +1,229 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema": "medotter/graph-provenance/v1",
3
+ "source": {
4
+ "file": "BUSI.pth",
5
+ "sha256": "71de8401a1099ea945d443bbd887699a55083a444b582d716f0e4f2f9f5762e8",
6
+ "reference": "BUSI.pth",
7
+ "model": "G_CASCADE",
8
+ "declaration_source": "sidecar",
9
+ "declaration": [
10
+ {
11
+ "file": "BUSI.pth.config.json",
12
+ "sha256": "a73a9c49ac2d1497de7cdd610e2ceef2d867e7ce544b803f906b6fb640bb4c97"
13
+ }
14
+ ],
15
+ "float32_vs_float64": {
16
+ "shape": [
17
+ 1,
18
+ 3,
19
+ 256,
20
+ 256
21
+ ],
22
+ "torch": "ok",
23
+ "float64": "ok",
24
+ "threads": 6,
25
+ "max_abs_diff": 5.7591826202685326e-05,
26
+ "scale": 23.836627773508027,
27
+ "rel_diff": 2.416106286086858e-06
28
+ }
29
+ },
30
+ "graph": {
31
+ "kind": "onnx",
32
+ "file": "BUSI.onnx",
33
+ "sha256": "456eb2eaaf3521af2eeab4e7c5e53658ffa3929455697b5343992a567ef1066c",
34
+ "bytes": 124133727,
35
+ "opset": 17,
36
+ "dynamic": false,
37
+ "reason": "trace_specialised",
38
+ "input": "image",
39
+ "output": "logits",
40
+ "input_channel": 3,
41
+ "num_classes": 1,
42
+ "size": [
43
+ 256,
44
+ 256
45
+ ]
46
+ },
47
+ "exporter": {
48
+ "api": "torch.onnx.export",
49
+ "name": "torchscript",
50
+ "dynamo": false,
51
+ "registered_symbolics": {
52
+ "aten::roll": 17
53
+ },
54
+ "producer": "pytorch 2.13.0",
55
+ "torch": "2.13.0+cpu",
56
+ "onnx": "1.22.0",
57
+ "onnxruntime": "1.29.0"
58
+ },
59
+ "verification_input": {
60
+ "kind": "smooth_random_field",
61
+ "distribution": "normal",
62
+ "coarse_factor": 16,
63
+ "min_coarse": 4,
64
+ "interpolation": "bilinear",
65
+ "align_corners": false,
66
+ "seed": 0
67
+ },
68
+ "attempts": [
69
+ {
70
+ "mode": "dynamic",
71
+ "exporter": "torchscript",
72
+ "outcome": "fell_back",
73
+ "reason": "trace_specialised",
74
+ "error": null,
75
+ "verification": [
76
+ {
77
+ "shape": [
78
+ 1,
79
+ 3,
80
+ 256,
81
+ 256
82
+ ],
83
+ "torch": "ok",
84
+ "graph": "ok",
85
+ "max_abs_diff": 2.872943878173828e-05,
86
+ "scale": 23.836624145507812,
87
+ "rel_diff": 1.2052645796805315e-06
88
+ },
89
+ {
90
+ "shape": [
91
+ 1,
92
+ 3,
93
+ 320,
94
+ 320
95
+ ],
96
+ "torch": "ok",
97
+ "graph": "error",
98
+ "max_abs_diff": null,
99
+ "scale": null,
100
+ "rel_diff": null,
101
+ "graph_error": "Fail: [ONNXRuntimeError] : 1 : FAIL : Non-zero status code returned while running Add node. Name:'/inner/decoder/gcb4/gcb4.0/graph_conv/dilated_knn_graph/Add_2' Status Message: /onnxruntime_src/onnxruntime/core/providers/cpu/math/element_wise_ops.h:563 void onnxruntime::BroadcastIterator::Init(ptrdiff_t, ptrdiff_t) axis == 1 || axis == largest was false. Attempting to broadcast an axis by a dimension other than 1. 64 by 100",
102
+ "error": "Fail: [ONNXRuntimeError] : 1 : FAIL : Non-zero status code returned while running Add node. Name:'/inner/decoder/gcb4/gcb4.0/graph_conv/dilated_knn_graph/Add_2' Status Message: /onnxruntime_src/onnxruntime/core/providers/cpu/math/element_wise_ops.h:563 void onnxruntime::BroadcastIterator::Init(ptrdiff_t, ptrdiff_t) axis == 1 || axis == largest was false. Attempting to broadcast an axis by a dimension other than 1. 64 by 100"
103
+ },
104
+ {
105
+ "shape": [
106
+ 1,
107
+ 3,
108
+ 224,
109
+ 224
110
+ ],
111
+ "torch": "ok",
112
+ "graph": "error",
113
+ "max_abs_diff": null,
114
+ "scale": null,
115
+ "rel_diff": null,
116
+ "graph_error": "Fail: [ONNXRuntimeError] : 1 : FAIL : Non-zero status code returned while running Add node. Name:'/inner/decoder/gcb4/gcb4.0/graph_conv/dilated_knn_graph/Add_2' Status Message: /onnxruntime_src/onnxruntime/core/providers/cpu/math/element_wise_ops.h:563 void onnxruntime::BroadcastIterator::Init(ptrdiff_t, ptrdiff_t) axis == 1 || axis == largest was false. Attempting to broadcast an axis by a dimension other than 1. 49 by 64",
117
+ "error": "Fail: [ONNXRuntimeError] : 1 : FAIL : Non-zero status code returned while running Add node. Name:'/inner/decoder/gcb4/gcb4.0/graph_conv/dilated_knn_graph/Add_2' Status Message: /onnxruntime_src/onnxruntime/core/providers/cpu/math/element_wise_ops.h:563 void onnxruntime::BroadcastIterator::Init(ptrdiff_t, ptrdiff_t) axis == 1 || axis == largest was false. Attempting to broadcast an axis by a dimension other than 1. 49 by 64"
118
+ },
119
+ {
120
+ "shape": [
121
+ 1,
122
+ 3,
123
+ 512,
124
+ 512
125
+ ],
126
+ "torch": "ok",
127
+ "graph": "error",
128
+ "max_abs_diff": null,
129
+ "scale": null,
130
+ "rel_diff": null,
131
+ "graph_error": "Fail: [ONNXRuntimeError] : 1 : FAIL : Non-zero status code returned while running Add node. Name:'/inner/decoder/gcb4/gcb4.0/graph_conv/dilated_knn_graph/Add_2' Status Message: /onnxruntime_src/onnxruntime/core/providers/cpu/math/element_wise_ops.h:563 void onnxruntime::BroadcastIterator::Init(ptrdiff_t, ptrdiff_t) axis == 1 || axis == largest was false. Attempting to broadcast an axis by a dimension other than 1. 64 by 256",
132
+ "error": "Fail: [ONNXRuntimeError] : 1 : FAIL : Non-zero status code returned while running Add node. Name:'/inner/decoder/gcb4/gcb4.0/graph_conv/dilated_knn_graph/Add_2' Status Message: /onnxruntime_src/onnxruntime/core/providers/cpu/math/element_wise_ops.h:563 void onnxruntime::BroadcastIterator::Init(ptrdiff_t, ptrdiff_t) axis == 1 || axis == largest was false. Attempting to broadcast an axis by a dimension other than 1. 64 by 256"
133
+ },
134
+ {
135
+ "shape": [
136
+ 2,
137
+ 3,
138
+ 256,
139
+ 256
140
+ ],
141
+ "torch": "ok",
142
+ "graph": "ok",
143
+ "max_abs_diff": 0.03668785095214844,
144
+ "scale": 23.83662986755371,
145
+ "rel_diff": 0.0015391375020714542
146
+ }
147
+ ]
148
+ },
149
+ {
150
+ "mode": "static",
151
+ "exporter": "torchscript",
152
+ "outcome": "kept",
153
+ "reason": "trace_specialised",
154
+ "error": null,
155
+ "verification": [
156
+ {
157
+ "shape": [
158
+ 1,
159
+ 3,
160
+ 256,
161
+ 256
162
+ ],
163
+ "torch": "ok",
164
+ "graph": "ok",
165
+ "max_abs_diff": 3.0994415283203125e-05,
166
+ "scale": 23.836624145507812,
167
+ "rel_diff": 1.3002854386594945e-06
168
+ }
169
+ ]
170
+ }
171
+ ],
172
+ "verification": [
173
+ {
174
+ "shape": [
175
+ 1,
176
+ 3,
177
+ 256,
178
+ 256
179
+ ],
180
+ "torch": "ok",
181
+ "graph": "ok",
182
+ "max_abs_diff": 3.0994415283203125e-05,
183
+ "scale": 23.836624145507812,
184
+ "rel_diff": 1.3002854386594945e-06
185
+ }
186
+ ],
187
+ "exported_at": "2026-09-07T15:50:08+00:00",
188
+ "release": {
189
+ "repo": "MedOtter/G_CASCADE",
190
+ "revision": "4eb4e9da9c9ebb6f6a6da384cd12a3e77928e85d",
191
+ "pth_file": "BUSI.pth",
192
+ "pth_sha256": "71de8401a1099ea945d443bbd887699a55083a444b582d716f0e4f2f9f5762e8",
193
+ "sidecar_sha256": "402e4863796b2530120ab02b07d1cb1732e28237a9d98398dec1bbc4a73d5594",
194
+ "sidecar_source": "existing",
195
+ "group": "checkout_only",
196
+ "reference_check": {
197
+ "dataset": "BUSI",
198
+ "split": "train",
199
+ "samples": 4,
200
+ "reproducible": true,
201
+ "status": "pass",
202
+ "sizes": [
203
+ {
204
+ "size": [
205
+ 256,
206
+ 256
207
+ ],
208
+ "predict_masks_equal": 4,
209
+ "pixels": 262144,
210
+ "disagreeing_pixels": 0,
211
+ "unexplained_pixels": 0,
212
+ "max_abs_diff": 5.340576171875e-05,
213
+ "scale": 31.195919036865234,
214
+ "rel_diff": 1.7119470548579983e-06,
215
+ "float32_vs_float64": {
216
+ "max_abs_diff": 4.9843137109206737e-05,
217
+ "scale": 31.195931295611484,
218
+ "rel_diff": 1.5977448032211325e-06,
219
+ "samples": 4,
220
+ "of": 4,
221
+ "complete": true
222
+ }
223
+ }
224
+ ]
225
+ },
226
+ "tool": "tools/hf_onnx_export.py",
227
+ "stamped_at": "2026-09-07T15:50:25+00:00"
228
+ }
229
+ }