From 40b28b80b4bc41a3cfccad8027c221b2697b52cb Mon Sep 17 00:00:00 2001 From: Leaf <18612568615@163.com> Date: Mon, 25 Nov 2024 20:40:30 +0800 Subject: [PATCH] fixed minor bugs --- configs/SNEMI/SNEMI-Affinity-UNet-LR.yaml | 2 +- connectomics/utils/evaluate.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/SNEMI/SNEMI-Affinity-UNet-LR.yaml b/configs/SNEMI/SNEMI-Affinity-UNet-LR.yaml index 28872ad6..9652560e 100755 --- a/configs/SNEMI/SNEMI-Affinity-UNet-LR.yaml +++ b/configs/SNEMI/SNEMI-Affinity-UNet-LR.yaml @@ -1,4 +1,4 @@ -# output long-rannge affinity map +# output long-range affinity map MODEL: ARCHITECTURE: unet_3d BLOCK_TYPE: residual_se diff --git a/connectomics/utils/evaluate.py b/connectomics/utils/evaluate.py index 4a3c9fa3..6acddcbc 100755 --- a/connectomics/utils/evaluate.py +++ b/connectomics/utils/evaluate.py @@ -241,7 +241,7 @@ def contingency_table(seg, gt, ignore_seg=[0], ignore_gt=[0], norm=True): """ segr = seg.ravel() gtr = gt.ravel() - ignored = np.zeros(segr.shape, np.bool) + ignored = np.zeros(segr.shape, bool) data = np.ones(len(gtr)) for i in ignore_seg: ignored[segr == i] = True