Skip to content

Commit 772c129

Browse files
committed
excluded file from cristae eval that has extreme contrasts
1 parent 71c2ad1 commit 772c129

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/cooper/training/evaluate_cristae.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def evaluate_file(labels_path, seg_path, model_name, segment_key, anno_key, mask
4444
print("Could not find label file for", seg_path)
4545
print("Skipping...")
4646

47-
if "Otof_AVCN03_429C_WT_M" in seg_path:
47+
if "WT20_eb7_AZ1_model2_combined" in seg_path:
4848
print("Removing unlabeled cristae by mitos", seg_path)
4949
# read mito labels
5050
mito_labels = open_file(labels_path)["raw_mitos_combined"][1][:]
@@ -90,6 +90,9 @@ def evaluate_folder(labels_path, segmentation_path, model_name, segment_key,
9090
print("Could not find label file or segmentation file")
9191
return
9292
for seg_path in seg_paths:
93+
if "Otof_AVCN03_429C_WT_M" in seg_path:
94+
print("Skipping because file has artifacts", seg_path)
95+
continue
9396
# label_path = find_label_file(seg_path, label_paths)
9497
label_path = seg_path # both store in n5
9598
if label_path is not None:

0 commit comments

Comments
 (0)