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