Skip to content

Commit 9b13df4

Browse files
committed
update transfomer and config
1 parent 1b4152d commit 9b13df4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

examples/prostate/config/train_test.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ mini_batch_size = 1
8585
mini_patch_shape = None
8686
mini_patch_stride= None
8787

88-
checkpoint_name = model/unet3d/model_12000.pt
88+
checkpoint_name = model/unet3d/model_15000.pt
8989
save_probability = False
90-
output_dir = result_12k
90+
output_dir = result
9191
evaluation_mode = True
9292
test_time_dropout = False
9393

pymic/io/transform3d.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,8 @@ class RandomCrop(object):
363363

364364
def __init__(self, output_size, fg_focus = False, fg_ratio = 0.0, mask_label = None, inverse = True):
365365
assert isinstance(output_size, (list, tuple))
366-
assert isinstance(mask_label, (list, tuple))
366+
if(mask_label is not None):
367+
assert isinstance(mask_label, (list, tuple))
367368
self.output_size = output_size
368369
self.inverse = inverse
369370
self.fg_focus = fg_focus

0 commit comments

Comments
 (0)