We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1be6d7f commit 2953bc2Copy full SHA for 2953bc2
connectomics/data/augmentation/test_augmentor.py
@@ -55,7 +55,7 @@ def __init__(self,
55
self.scale_factors = scale_factors
56
self.inference_act = inference_act
57
58
- if num_aug is not None:
+ if num_aug is not None or num_aug == 0:
59
assert num_aug in [4, 8, 16], \
60
"TestAugmentor.num_aug should be either 4, 8 or 16!"
61
if self.do_2d: # max num_aug for 2d images
@@ -208,7 +208,7 @@ def update_name(self, name):
208
r"""Update the name of the output file to indicate applied test-time augmentations.
209
"""
210
extension = "_"
211
- if self.num_aug is None:
+ if self.num_aug is None or self.num_aug == 0:
212
return name
213
elif self.num_aug == 4:
214
extension += "xy"
0 commit comments