Skip to content

Commit 9ad1983

Browse files
author
donglaiw
committed
fix erosion option bug
1 parent 4b00a0f commit 9ad1983

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

connectomics/data/utils/data_transform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def edt_instance(label: np.ndarray,
6161
mode: str = '2d',
6262
quantize: bool = True,
6363
resolution: Tuple[float] = (1.0, 1.0, 1.0),
64-
padding: bool = False):
64+
padding: bool = False),
6565
erosion: int = 0):
6666
assert mode in ['2d', '3d']
6767
if mode == '3d':

connectomics/model/utils/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def __init__(self,
125125
if topt[0] == '5': # instance_edt
126126
if len(topt) == 1:
127127
topt = topt + '-2d-0-0-5.0' # 2d w/o padding or quantize
128-
_, mode, padding, quant, z_res = topt.split('-')
128+
_, mode, padding, quant, z_res, erosion = topt.split('-')
129129
if bool(int(quant)): # quantized by 0.1 bin (additional one for bg)
130130
self.split_channels.append(11)
131131
continue

0 commit comments

Comments
 (0)