Skip to content

Commit e2acbe3

Browse files
author
donglaiw
committed
fix visualizer for topt=5
1 parent ae3de2f commit e2acbe3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

connectomics/utils/visualizer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ def visualize(self, volume, label, output, weight, iter_total, writer,
6464

6565
if topt[0] == '5': # distance transform
6666
if len(topt) == 1:
67-
topt = topt + '-2d-0-0-5.0' # default
68-
_, mode, padding, quant, z_res = topt.split('-')
67+
topt = topt + '-2d-0-0-5.0-0' # default
68+
_, mode, padding, quant, z_res, erosion = topt.split('-')
6969
if bool(int(quant)): # only the quantized version needs decoding
7070
output[idx] = decode_quantize(
7171
output[idx], mode='max').unsqueeze(1)

0 commit comments

Comments
 (0)