SharpMeow commited on
Commit
df8fc8d
·
verified ·
1 Parent(s): 933a990

Add card, checksums, index and previews

Browse files
Files changed (6) hide show
  1. README.md +73 -0
  2. SHA256SUMS +27 -0
  3. index.json +713 -0
  4. load_example.py +14 -0
  5. preview-xy.png +3 -0
  6. preview-xz.png +3 -0
README.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ tags: [vesuvius-challenge, herculaneum, ct, lasagna, ome-zarr]
4
+ pretty_name: PHerc0841 lasagna field (villa predict3d)
5
+ ---
6
+
7
+ # PHerc0841 lasagna field
8
+
9
+ villa's lasagna `predict3d` output for the whole PHerc0841 scan, in villa's own layout, so you can point lasagna or the
10
+ spiral fit at it without running the model yourself. The open data has no lasagna field for this scan.
11
+
12
+ ![cos and surface normals, a slice through the middle of the scroll](preview-xy.png)
13
+
14
+ ## Get it
15
+
16
+ ```bash
17
+ hf download SharpMeow/pherc0841-lasagna --repo-type dataset --local-dir pherc0841-lasagna
18
+ cd pherc0841-lasagna && sha256sum -c SHA256SUMS
19
+ for f in parts/*.tar; do tar -xf "$f"; done
20
+ tar -xf PHerc0841-lasagna-pyramid-fix.tar # last: the joined PHerc0841.lasagna.json
21
+ ```
22
+
23
+ You end up with `PHerc0841.lasagna.json` and `PHerc0841_{cos,grad_mag,nx,ny}.ome.zarr`.
24
+
25
+ ## Load it
26
+
27
+ ```python
28
+ import numpy as np
29
+ import zarr
30
+
31
+ cos = zarr.open("PHerc0841_cos.ome.zarr/1", mode="r") # every 2nd scan voxel
32
+ nx = zarr.open("PHerc0841_nx.ome.zarr/2", mode="r") # every 4th scan voxel
33
+ ny = zarr.open("PHerc0841_ny.ome.zarr/2", mode="r")
34
+ print("cos", cos.shape, "normals", nx.shape)
35
+
36
+ z, y, x = 1536, 3851, 3851 # a point in full-resolution scan voxels
37
+ patch = cos[z // 2, y // 2 - 256:y // 2 + 256, x // 2 - 256:x // 2 + 256]
38
+ a = (float(nx[z // 4, y // 4, x // 4]) - 128) / 127
39
+ b = (float(ny[z // 4, y // 4, x // 4]) - 128) / 127
40
+ print("cos patch", patch.shape, "mean", round(float(patch.mean()), 1))
41
+ print("normal", round(a, 3), round(b, 3), round(float(np.sqrt(max(0.0, 1 - a * a - b * b))), 3))
42
+ ```
43
+
44
+ `load_example.py` is a runnable version of this snippet; it was run on the real parts before upload.
45
+
46
+ ## What it is
47
+
48
+ - Scan: PHerc0841, `20250821151531-9.366um-1.2m-113keV-masked.zarr`, level 0, Vesuvius Challenge open data (9.366 um)
49
+ - Model: `scrollprize/lasagna` `model_current.pt` at revision de45f011 (sha256 4cc0c40a...)
50
+ - Code: ScrollPrize/villa lasagna at db3dbea2, `lasagna-preprocess predict3d --tile-size 192`, default chunks and levels
51
+ - Channels: cos at OME-Zarr level 1 (2x down); grad_mag, nx, ny at level 2 (4x down); each with its pyramid
52
+ - Run: 22 parts on Hugging Face Jobs (RTX PRO 6000), one x, y, z box each. Every part edge sits on a multiple of
53
+ 1,024 scan voxels, so every chunk of every level, level 4 included, was written by exactly one part, and the parts
54
+ together are the whole field. A seam check on level 2 flagged 1 part edge (cos at z 1,024; worst step 1.62
55
+ times its neighbours against a 1.5 limit). One run straight across it gave the same field, chunk for chunk, so
56
+ the step is in the scan there, not a seam. Every other edge passed.
57
+ - Settings check: the same code and settings reproduce villa's published PHerc0343 lasagna field on a test crop
58
+ (cos within 2 of 255 at every voxel compared).
59
+
60
+ ## Notes
61
+
62
+ Raw model output; nobody has checked it by eye. Regions the masked scan leaves empty are absent (fill 0). The model
63
+ ran on the scan at its native resolution with no resampling.
64
+
65
+ ## Related
66
+
67
+ The same kind of field for PHerc0175A is in
68
+ [SharpMeow/pherc0175a-lasagna](https://huggingface.co/datasets/SharpMeow/pherc0175a-lasagna).
69
+
70
+ ## Credit and terms
71
+
72
+ The scan is Vesuvius Challenge open data, CC BY-NC 4.0; this derived field is shared under the same terms. Model and
73
+ code are ScrollPrize/villa's lasagna, credit to its authors. Shared by Chase Hendrick.
SHA256SUMS ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ba64588c999173c277ae0a0240324f32295e69d6f00a81b36db13eab62677325 parts/PHerc0841-lasagna-t000.tar
2
+ dadcc3326d24335f3af74dd67428660c152cb93dfe59e99162ddfb8d38be1973 parts/PHerc0841-lasagna-t001.tar
3
+ 20d18125540c501e2f1a56b400171e5628ec224eb02ef8aa1fca4d50d87072a6 parts/PHerc0841-lasagna-t002.tar
4
+ 25a5ed6014f71f5ecda2e25c593ee16c7657d91bdba5495eddcbcdf10b86a80e parts/PHerc0841-lasagna-t003.tar
5
+ cd74ae1134036c5cb0a03ba03638c9dc2b596f8818f42e91177f752f9a2341c9 parts/PHerc0841-lasagna-t004.tar
6
+ 1359c3deb19d1b25b252e4b8ecdc6f3a01a433c545deec38661bd1bf443200c5 parts/PHerc0841-lasagna-t005.tar
7
+ 905e4c55c700050294bc30fe3febd6507ae9f90a065c13d219a8dc0ebb01890b parts/PHerc0841-lasagna-t006.tar
8
+ 7d7516a5967f3073f5ada010651113f6fb930afbc06eafc4721774862ec02d95 parts/PHerc0841-lasagna-t007.tar
9
+ 66ea64e5d5f7da7f60d04e6e95c68c1002f95db98664ed6c59dc44ce560b4bfa parts/PHerc0841-lasagna-t008.tar
10
+ 59bd7b14e4249e6ba7feedee9f339c6bcf7fdd0a6bc358058b56f8d5a5a1d987 parts/PHerc0841-lasagna-t009.tar
11
+ d9fee060d0b19d9f18d08c535f4950d00ec11c27dbdfa2ca5e5d4f2760ba76ab parts/PHerc0841-lasagna-t010.tar
12
+ 4df6d39c44d327eef34aafe4bf6f49158b7cce3718813a0aa21974c254b7bd96 parts/PHerc0841-lasagna-t011.tar
13
+ d2df7bc53db092661bf280f238270d32f3eaecaac7ecf896c400b863af87b9bd parts/PHerc0841-lasagna-t012.tar
14
+ ddc911e7394669d51beb848a19cd62b176fe86230253385f13c94213d197c0c4 parts/PHerc0841-lasagna-t013.tar
15
+ c02b527559f83a03254f6b05f954060d162421cb55ac97bc1c8357b303d8491c parts/PHerc0841-lasagna-t014.tar
16
+ db3b083e85ff4f3f6746fd043142b1920cc875a69d0693a42792f2a66313fe30 parts/PHerc0841-lasagna-t015.tar
17
+ bb289eb7754cf652adf90da331afd934773b02a9e09635625ad5bc185502bff9 parts/PHerc0841-lasagna-t016.tar
18
+ 32c3e50436ef7a9b6622bc4f2cc27285a36c223bb49bf5ae9adfe6343fd1a20b parts/PHerc0841-lasagna-t017.tar
19
+ 23ce211181e3fedf419e4627b4f017cfbc0f13fd428dc4ba62d7579c25b1e6be parts/PHerc0841-lasagna-t018.tar
20
+ 3c19159746b888b1259091b112cf6abe45355fb2a598246201cbe25a2b56ded0 parts/PHerc0841-lasagna-t019.tar
21
+ 729339f43e9dec4b33a6549db5f633b88c5256e6ff868da7ad85847bebfc4be0 parts/PHerc0841-lasagna-t020.tar
22
+ 5ee349a64653f84a8b0d3e21902e58d5e4fd847b8b0496b0183116f2c6f391b5 parts/PHerc0841-lasagna-t021.tar
23
+ a737252c0487e6ab454c57d8bba4f0856e2a3cf719e9984724b6239229fe3b6f PHerc0841-lasagna-pyramid-fix.tar
24
+ 7cced2653c5e5a1ac1936f7ef43beef3f31a3768151ff48a5f6a88176d12825e index.json
25
+ 2fe210973670ed07e0caf1582ae05d3eedb11cc9445aab592ecf28f62bf53599 load_example.py
26
+ f52efe47e22c402d899e5d4aa0790e4d2161cfb90e3fa293b3f6bd07a23a10d0 preview-xy.png
27
+ a585b6861e1f4603b135e41e892f53d4187fc1d03324b4d0dd3dfb3b1e2ac198 preview-xz.png
index.json ADDED
@@ -0,0 +1,713 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "scan": "PHerc0841",
3
+ "ct": "PHerc0841/volumes/20250821151531-9.366um-1.2m-113keV-masked.zarr",
4
+ "spec": "docs/compute/hf-specs/2026-10-24-lasagna-nine.md",
5
+ "parts": [
6
+ {
7
+ "part": "t000",
8
+ "crop_zyx": [
9
+ [
10
+ 0,
11
+ 1024
12
+ ],
13
+ [
14
+ 0,
15
+ 7703
16
+ ],
17
+ [
18
+ 0,
19
+ 7703
20
+ ]
21
+ ],
22
+ "tar": "PHerc0841-lasagna-t000.tar",
23
+ "bytes": 1157713920,
24
+ "sha256": "ba64588c999173c277ae0a0240324f32295e69d6f00a81b36db13eab62677325",
25
+ "job_id": "6adbede7046eb82b1ecd859c",
26
+ "predict_s": 701.5
27
+ },
28
+ {
29
+ "part": "t001",
30
+ "crop_zyx": [
31
+ [
32
+ 1024,
33
+ 2048
34
+ ],
35
+ [
36
+ 0,
37
+ 7703
38
+ ],
39
+ [
40
+ 0,
41
+ 7703
42
+ ]
43
+ ],
44
+ "tar": "PHerc0841-lasagna-t001.tar",
45
+ "bytes": 1659146240,
46
+ "sha256": "dadcc3326d24335f3af74dd67428660c152cb93dfe59e99162ddfb8d38be1973",
47
+ "job_id": "6adbe66b046eb82b1ecd7f2c",
48
+ "predict_s": 600.8
49
+ },
50
+ {
51
+ "part": "t002",
52
+ "crop_zyx": [
53
+ [
54
+ 2048,
55
+ 3072
56
+ ],
57
+ [
58
+ 0,
59
+ 4096
60
+ ],
61
+ [
62
+ 0,
63
+ 7703
64
+ ]
65
+ ],
66
+ "tar": "PHerc0841-lasagna-t002.tar",
67
+ "bytes": 2530775040,
68
+ "sha256": "20d18125540c501e2f1a56b400171e5628ec224eb02ef8aa1fca4d50d87072a6",
69
+ "job_id": "6adbe66f1e112550ce7d9aeb",
70
+ "predict_s": 750.9
71
+ },
72
+ {
73
+ "part": "t003",
74
+ "crop_zyx": [
75
+ [
76
+ 2048,
77
+ 3072
78
+ ],
79
+ [
80
+ 4096,
81
+ 7703
82
+ ],
83
+ [
84
+ 0,
85
+ 7703
86
+ ]
87
+ ],
88
+ "tar": "PHerc0841-lasagna-t003.tar",
89
+ "bytes": 1158072320,
90
+ "sha256": "25a5ed6014f71f5ecda2e25c593ee16c7657d91bdba5495eddcbcdf10b86a80e",
91
+ "job_id": "6adbe66b1e112550ce7d9add",
92
+ "predict_s": 405.6
93
+ },
94
+ {
95
+ "part": "t004",
96
+ "crop_zyx": [
97
+ [
98
+ 3072,
99
+ 4096
100
+ ],
101
+ [
102
+ 0,
103
+ 4096
104
+ ],
105
+ [
106
+ 0,
107
+ 7703
108
+ ]
109
+ ],
110
+ "tar": "PHerc0841-lasagna-t004.tar",
111
+ "bytes": 2732318720,
112
+ "sha256": "cd74ae1134036c5cb0a03ba03638c9dc2b596f8818f42e91177f752f9a2341c9",
113
+ "job_id": "6adbe673046eb82b1ecd7f3e",
114
+ "predict_s": 811.0
115
+ },
116
+ {
117
+ "part": "t005",
118
+ "crop_zyx": [
119
+ [
120
+ 3072,
121
+ 4096
122
+ ],
123
+ [
124
+ 4096,
125
+ 7703
126
+ ],
127
+ [
128
+ 0,
129
+ 7703
130
+ ]
131
+ ],
132
+ "tar": "PHerc0841-lasagna-t005.tar",
133
+ "bytes": 1305569280,
134
+ "sha256": "1359c3deb19d1b25b252e4b8ecdc6f3a01a433c545deec38661bd1bf443200c5",
135
+ "job_id": "6adbe66b046eb82b1ecd7f2f",
136
+ "predict_s": 450.5
137
+ },
138
+ {
139
+ "part": "t006",
140
+ "crop_zyx": [
141
+ [
142
+ 4096,
143
+ 5120
144
+ ],
145
+ [
146
+ 0,
147
+ 4096
148
+ ],
149
+ [
150
+ 0,
151
+ 7703
152
+ ]
153
+ ],
154
+ "tar": "PHerc0841-lasagna-t006.tar",
155
+ "bytes": 2477383680,
156
+ "sha256": "905e4c55c700050294bc30fe3febd6507ae9f90a065c13d219a8dc0ebb01890b",
157
+ "job_id": "6adbe66f046eb82b1ecd7f37",
158
+ "predict_s": 725.8
159
+ },
160
+ {
161
+ "part": "t007",
162
+ "crop_zyx": [
163
+ [
164
+ 4096,
165
+ 5120
166
+ ],
167
+ [
168
+ 4096,
169
+ 7703
170
+ ],
171
+ [
172
+ 0,
173
+ 7703
174
+ ]
175
+ ],
176
+ "tar": "PHerc0841-lasagna-t007.tar",
177
+ "bytes": 1224796160,
178
+ "sha256": "7d7516a5967f3073f5ada010651113f6fb930afbc06eafc4721774862ec02d95",
179
+ "job_id": "6adbe66b046eb82b1ecd7f2e",
180
+ "predict_s": 415.5
181
+ },
182
+ {
183
+ "part": "t008",
184
+ "crop_zyx": [
185
+ [
186
+ 5120,
187
+ 6144
188
+ ],
189
+ [
190
+ 0,
191
+ 7703
192
+ ],
193
+ [
194
+ 0,
195
+ 7703
196
+ ]
197
+ ],
198
+ "tar": "PHerc0841-lasagna-t008.tar",
199
+ "bytes": 3200819200,
200
+ "sha256": "66ea64e5d5f7da7f60d04e6e95c68c1002f95db98664ed6c59dc44ce560b4bfa",
201
+ "job_id": "6adbe597046eb82b1ecd7ea0",
202
+ "predict_s": 941.1
203
+ },
204
+ {
205
+ "part": "t009",
206
+ "crop_zyx": [
207
+ [
208
+ 6144,
209
+ 7168
210
+ ],
211
+ [
212
+ 0,
213
+ 7703
214
+ ],
215
+ [
216
+ 0,
217
+ 7703
218
+ ]
219
+ ],
220
+ "tar": "PHerc0841-lasagna-t009.tar",
221
+ "bytes": 2484510720,
222
+ "sha256": "59bd7b14e4249e6ba7feedee9f339c6bcf7fdd0a6bc358058b56f8d5a5a1d987",
223
+ "job_id": "6adbe66f046eb82b1ecd7f36",
224
+ "predict_s": 745.8
225
+ },
226
+ {
227
+ "part": "t010",
228
+ "crop_zyx": [
229
+ [
230
+ 7168,
231
+ 8192
232
+ ],
233
+ [
234
+ 0,
235
+ 7703
236
+ ],
237
+ [
238
+ 0,
239
+ 7703
240
+ ]
241
+ ],
242
+ "tar": "PHerc0841-lasagna-t010.tar",
243
+ "bytes": 2356346880,
244
+ "sha256": "d9fee060d0b19d9f18d08c535f4950d00ec11c27dbdfa2ca5e5d4f2760ba76ab",
245
+ "job_id": "6adbe66f046eb82b1ecd7f34",
246
+ "predict_s": 715.9
247
+ },
248
+ {
249
+ "part": "t011",
250
+ "crop_zyx": [
251
+ [
252
+ 8192,
253
+ 9216
254
+ ],
255
+ [
256
+ 0,
257
+ 7703
258
+ ],
259
+ [
260
+ 0,
261
+ 7703
262
+ ]
263
+ ],
264
+ "tar": "PHerc0841-lasagna-t011.tar",
265
+ "bytes": 2220840960,
266
+ "sha256": "4df6d39c44d327eef34aafe4bf6f49158b7cce3718813a0aa21974c254b7bd96",
267
+ "job_id": "6adbe66f1e112550ce7d9ae9",
268
+ "predict_s": 675.8
269
+ },
270
+ {
271
+ "part": "t012",
272
+ "crop_zyx": [
273
+ [
274
+ 9216,
275
+ 10240
276
+ ],
277
+ [
278
+ 0,
279
+ 7703
280
+ ],
281
+ [
282
+ 0,
283
+ 7703
284
+ ]
285
+ ],
286
+ "tar": "PHerc0841-lasagna-t012.tar",
287
+ "bytes": 2199930880,
288
+ "sha256": "d2df7bc53db092661bf280f238270d32f3eaecaac7ecf896c400b863af87b9bd",
289
+ "job_id": "6adbe66f046eb82b1ecd7f3a",
290
+ "predict_s": 680.9
291
+ },
292
+ {
293
+ "part": "t013",
294
+ "crop_zyx": [
295
+ [
296
+ 10240,
297
+ 11264
298
+ ],
299
+ [
300
+ 0,
301
+ 7703
302
+ ],
303
+ [
304
+ 0,
305
+ 7703
306
+ ]
307
+ ],
308
+ "tar": "PHerc0841-lasagna-t013.tar",
309
+ "bytes": 2256486400,
310
+ "sha256": "ddc911e7394669d51beb848a19cd62b176fe86230253385f13c94213d197c0c4",
311
+ "job_id": "6adbe66f1e112550ce7d9aea",
312
+ "predict_s": 695.8
313
+ },
314
+ {
315
+ "part": "t014",
316
+ "crop_zyx": [
317
+ [
318
+ 11264,
319
+ 12288
320
+ ],
321
+ [
322
+ 0,
323
+ 7703
324
+ ],
325
+ [
326
+ 0,
327
+ 7703
328
+ ]
329
+ ],
330
+ "tar": "PHerc0841-lasagna-t014.tar",
331
+ "bytes": 2268364800,
332
+ "sha256": "c02b527559f83a03254f6b05f954060d162421cb55ac97bc1c8357b303d8491c",
333
+ "job_id": "6adbe66f1e112550ce7d9ae7",
334
+ "predict_s": 700.9
335
+ },
336
+ {
337
+ "part": "t015",
338
+ "crop_zyx": [
339
+ [
340
+ 12288,
341
+ 13312
342
+ ],
343
+ [
344
+ 0,
345
+ 7703
346
+ ],
347
+ [
348
+ 0,
349
+ 7703
350
+ ]
351
+ ],
352
+ "tar": "PHerc0841-lasagna-t015.tar",
353
+ "bytes": 2323046400,
354
+ "sha256": "db3b083e85ff4f3f6746fd043142b1920cc875a69d0693a42792f2a66313fe30",
355
+ "job_id": "6adbe670046eb82b1ecd7f3c",
356
+ "predict_s": 715.9
357
+ },
358
+ {
359
+ "part": "t016",
360
+ "crop_zyx": [
361
+ [
362
+ 13312,
363
+ 14336
364
+ ],
365
+ [
366
+ 0,
367
+ 7703
368
+ ],
369
+ [
370
+ 0,
371
+ 7703
372
+ ]
373
+ ],
374
+ "tar": "PHerc0841-lasagna-t016.tar",
375
+ "bytes": 2426265600,
376
+ "sha256": "bb289eb7754cf652adf90da331afd934773b02a9e09635625ad5bc185502bff9",
377
+ "job_id": "6adbe6701e112550ce7d9af1",
378
+ "predict_s": 736.2
379
+ },
380
+ {
381
+ "part": "t017",
382
+ "crop_zyx": [
383
+ [
384
+ 14336,
385
+ 15360
386
+ ],
387
+ [
388
+ 0,
389
+ 7703
390
+ ],
391
+ [
392
+ 0,
393
+ 7703
394
+ ]
395
+ ],
396
+ "tar": "PHerc0841-lasagna-t017.tar",
397
+ "bytes": 2492456960,
398
+ "sha256": "32c3e50436ef7a9b6622bc4f2cc27285a36c223bb49bf5ae9adfe6343fd1a20b",
399
+ "job_id": "6adbe6701e112550ce7d9aef",
400
+ "predict_s": 745.9
401
+ },
402
+ {
403
+ "part": "t018",
404
+ "crop_zyx": [
405
+ [
406
+ 15360,
407
+ 16384
408
+ ],
409
+ [
410
+ 0,
411
+ 7703
412
+ ],
413
+ [
414
+ 0,
415
+ 7703
416
+ ]
417
+ ],
418
+ "tar": "PHerc0841-lasagna-t018.tar",
419
+ "bytes": 2691143680,
420
+ "sha256": "23ce211181e3fedf419e4627b4f017cfbc0f13fd428dc4ba62d7579c25b1e6be",
421
+ "job_id": "6adbe6701e112550ce7d9af2",
422
+ "predict_s": 791.1
423
+ },
424
+ {
425
+ "part": "t019",
426
+ "crop_zyx": [
427
+ [
428
+ 16384,
429
+ 17408
430
+ ],
431
+ [
432
+ 0,
433
+ 7703
434
+ ],
435
+ [
436
+ 0,
437
+ 7703
438
+ ]
439
+ ],
440
+ "tar": "PHerc0841-lasagna-t019.tar",
441
+ "bytes": 2651279360,
442
+ "sha256": "3c19159746b888b1259091b112cf6abe45355fb2a598246201cbe25a2b56ded0",
443
+ "job_id": "6adbe6701e112550ce7d9af5",
444
+ "predict_s": 780.8
445
+ },
446
+ {
447
+ "part": "t020",
448
+ "crop_zyx": [
449
+ [
450
+ 17408,
451
+ 18432
452
+ ],
453
+ [
454
+ 0,
455
+ 7703
456
+ ],
457
+ [
458
+ 0,
459
+ 7703
460
+ ]
461
+ ],
462
+ "tar": "PHerc0841-lasagna-t020.tar",
463
+ "bytes": 1724067840,
464
+ "sha256": "729339f43e9dec4b33a6549db5f633b88c5256e6ff868da7ad85847bebfc4be0",
465
+ "job_id": "6adbe66b1e112550ce7d9adb",
466
+ "predict_s": 595.7
467
+ },
468
+ {
469
+ "part": "t021",
470
+ "crop_zyx": [
471
+ [
472
+ 18432,
473
+ 19400
474
+ ],
475
+ [
476
+ 0,
477
+ 7703
478
+ ],
479
+ [
480
+ 0,
481
+ 7703
482
+ ]
483
+ ],
484
+ "tar": "PHerc0841-lasagna-t021.tar",
485
+ "bytes": 400711680,
486
+ "sha256": "5ee349a64653f84a8b0d3e21902e58d5e4fd847b8b0496b0183116f2c6f391b5",
487
+ "job_id": "6adbe666046eb82b1ecd7f22",
488
+ "predict_s": 200.4
489
+ }
490
+ ],
491
+ "manifest": {
492
+ "version": 2,
493
+ "source_to_base": 1.0,
494
+ "grad_mag_encode_scale": 1000.0,
495
+ "grad_mag_factor": 1.0,
496
+ "groups": {
497
+ "cos": {
498
+ "zarr": "PHerc0841_cos.ome.zarr/1",
499
+ "scaledown": 1,
500
+ "channels": [
501
+ "cos"
502
+ ]
503
+ },
504
+ "grad_mag": {
505
+ "zarr": "PHerc0841_grad_mag.ome.zarr/2",
506
+ "scaledown": 2,
507
+ "channels": [
508
+ "grad_mag"
509
+ ]
510
+ },
511
+ "nx": {
512
+ "zarr": "PHerc0841_nx.ome.zarr/2",
513
+ "scaledown": 2,
514
+ "channels": [
515
+ "nx"
516
+ ]
517
+ },
518
+ "ny": {
519
+ "zarr": "PHerc0841_ny.ome.zarr/2",
520
+ "scaledown": 2,
521
+ "channels": [
522
+ "ny"
523
+ ]
524
+ }
525
+ },
526
+ "provenance": "inference.json",
527
+ "crops": [
528
+ [
529
+ 0,
530
+ 0,
531
+ 0,
532
+ 7703,
533
+ 7703,
534
+ 1024
535
+ ],
536
+ [
537
+ 0,
538
+ 0,
539
+ 1024,
540
+ 7703,
541
+ 7703,
542
+ 1024
543
+ ],
544
+ [
545
+ 0,
546
+ 0,
547
+ 2048,
548
+ 7703,
549
+ 4096,
550
+ 1024
551
+ ],
552
+ [
553
+ 0,
554
+ 0,
555
+ 3072,
556
+ 7703,
557
+ 4096,
558
+ 1024
559
+ ],
560
+ [
561
+ 0,
562
+ 0,
563
+ 4096,
564
+ 7703,
565
+ 4096,
566
+ 1024
567
+ ],
568
+ [
569
+ 0,
570
+ 0,
571
+ 5120,
572
+ 7703,
573
+ 7703,
574
+ 1024
575
+ ],
576
+ [
577
+ 0,
578
+ 0,
579
+ 6144,
580
+ 7703,
581
+ 7703,
582
+ 1024
583
+ ],
584
+ [
585
+ 0,
586
+ 0,
587
+ 7168,
588
+ 7703,
589
+ 7703,
590
+ 1024
591
+ ],
592
+ [
593
+ 0,
594
+ 0,
595
+ 8192,
596
+ 7703,
597
+ 7703,
598
+ 1024
599
+ ],
600
+ [
601
+ 0,
602
+ 0,
603
+ 9216,
604
+ 7703,
605
+ 7703,
606
+ 1024
607
+ ],
608
+ [
609
+ 0,
610
+ 0,
611
+ 10240,
612
+ 7703,
613
+ 7703,
614
+ 1024
615
+ ],
616
+ [
617
+ 0,
618
+ 0,
619
+ 11264,
620
+ 7703,
621
+ 7703,
622
+ 1024
623
+ ],
624
+ [
625
+ 0,
626
+ 0,
627
+ 12288,
628
+ 7703,
629
+ 7703,
630
+ 1024
631
+ ],
632
+ [
633
+ 0,
634
+ 0,
635
+ 13312,
636
+ 7703,
637
+ 7703,
638
+ 1024
639
+ ],
640
+ [
641
+ 0,
642
+ 0,
643
+ 14336,
644
+ 7703,
645
+ 7703,
646
+ 1024
647
+ ],
648
+ [
649
+ 0,
650
+ 0,
651
+ 15360,
652
+ 7703,
653
+ 7703,
654
+ 1024
655
+ ],
656
+ [
657
+ 0,
658
+ 0,
659
+ 16384,
660
+ 7703,
661
+ 7703,
662
+ 1024
663
+ ],
664
+ [
665
+ 0,
666
+ 0,
667
+ 17408,
668
+ 7703,
669
+ 7703,
670
+ 1024
671
+ ],
672
+ [
673
+ 0,
674
+ 0,
675
+ 18432,
676
+ 7703,
677
+ 7703,
678
+ 968
679
+ ],
680
+ [
681
+ 0,
682
+ 4096,
683
+ 2048,
684
+ 7703,
685
+ 3607,
686
+ 1024
687
+ ],
688
+ [
689
+ 0,
690
+ 4096,
691
+ 3072,
692
+ 7703,
693
+ 3607,
694
+ 1024
695
+ ],
696
+ [
697
+ 0,
698
+ 4096,
699
+ 4096,
700
+ 7703,
701
+ 3607,
702
+ 1024
703
+ ]
704
+ ],
705
+ "base_shape_zyx": [
706
+ 19400,
707
+ 7703,
708
+ 7703
709
+ ]
710
+ },
711
+ "rebuild_levels": [],
712
+ "problems": []
713
+ }
load_example.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import numpy as np
2
+ import zarr
3
+
4
+ cos = zarr.open("PHerc0841_cos.ome.zarr/1", mode="r") # every 2nd scan voxel
5
+ nx = zarr.open("PHerc0841_nx.ome.zarr/2", mode="r") # every 4th scan voxel
6
+ ny = zarr.open("PHerc0841_ny.ome.zarr/2", mode="r")
7
+ print("cos", cos.shape, "normals", nx.shape)
8
+
9
+ z, y, x = 1536, 3851, 3851 # a point in full-resolution scan voxels
10
+ patch = cos[z // 2, y // 2 - 256:y // 2 + 256, x // 2 - 256:x // 2 + 256]
11
+ a = (float(nx[z // 4, y // 4, x // 4]) - 128) / 127
12
+ b = (float(ny[z // 4, y // 4, x // 4]) - 128) / 127
13
+ print("cos patch", patch.shape, "mean", round(float(patch.mean()), 1))
14
+ print("normal", round(a, 3), round(b, 3), round(float(np.sqrt(max(0.0, 1 - a * a - b * b))), 3))
preview-xy.png ADDED

Git LFS Details

  • SHA256: f52efe47e22c402d899e5d4aa0790e4d2161cfb90e3fa293b3f6bd07a23a10d0
  • Pointer size: 131 Bytes
  • Size of remote file: 426 kB
preview-xz.png ADDED

Git LFS Details

  • SHA256: a585b6861e1f4603b135e41e892f53d4187fc1d03324b4d0dd3dfb3b1e2ac198
  • Pointer size: 132 Bytes
  • Size of remote file: 2.37 MB