We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f08ad89 commit 7dd6962Copy full SHA for 7dd6962
scripts/cooper/revision/generate_az_eval_data.py
@@ -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