Skip to content

Commit 7dd6962

Browse files
Work on revision of AZ model WIP
1 parent f08ad89 commit 7dd6962

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from synapse_net.sample_data import get_sample_data
2+
from synapse_net.inference import run_segmentation, get_model
3+
from elf.io import open_file
4+
5+
6+
sample_data = get_sample_data("tem_tomo")
7+
tomo = open_file(sample_data, "r")["data"][:]
8+
9+
model = get_model("active_zone")
10+
seg = run_segmentation(tomo, model, "active_zone")
11+
12+
with open_file("./pred.h5", "a") as f:
13+
f.create_dataset("pred", data=seg, compression="gzip")

0 commit comments

Comments
 (0)