Skip to content

Commit 3dc35f1

Browse files
author
anna-grim
committed
bug
1 parent e40269e commit 3dc35f1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/segmentation_skeleton_metrics/skeleton_metric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ def __init__(
115115
# Load ground truth
116116
print("\n(1) Load Ground Truth")
117117
assert type(valid_labels) is set if valid_labels else True
118+
self.label_mask = pred_labels
118119
self.valid_labels = valid_labels
119120
self.init_label_map(connections_path)
120121
self.init_graphs(gt_pointer)
121122

122123
print("\n(2) Load Prediction")
123-
self.label_mask = pred_labels
124124
if fragments_pointer:
125125
self.load_fragments(fragments_pointer)
126126
else:

src/segmentation_skeleton_metrics/utils/swc_util.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ def load_from_local_paths(self, paths):
172172
threads = list()
173173
pbar = tqdm(total=len(paths), desc="Read SWCs")
174174
for path in paths:
175-
#self.load_from_local_path(path)
176175
threads.append(
177176
executor.submit(self.load_from_local_path, path)
178177
)

0 commit comments

Comments
 (0)