Changed typo of impulse
This commit is contained in:
parent
e365f8aa3a
commit
1d29efd100
|
@ -90,7 +90,7 @@ class AddUniformNoise(object):
|
||||||
return self.__class__.__name__ + '(mean={0}, std={1})'.format(self.mean, self.std)
|
return self.__class__.__name__ + '(mean={0}, std={1})'.format(self.mean, self.std)
|
||||||
|
|
||||||
|
|
||||||
class AddInpulseNoise(object):
|
class AddImpulseNoise(object):
|
||||||
def __init__(self, a=0.0):
|
def __init__(self, a=0.0):
|
||||||
self.value = a
|
self.value = a
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@ def get_mnist_loaders(batch_size=128, test_batch_size=1000, perc=1.0):
|
||||||
# AddErlangNoise(0.0001, 0.0001),
|
# AddErlangNoise(0.0001, 0.0001),
|
||||||
# AddExponentialNoise(2),
|
# AddExponentialNoise(2),
|
||||||
# AddUniformNoise(2, 1),
|
# AddUniformNoise(2, 1),
|
||||||
AddInpulseNoise(0.5),
|
AddImpulseNoise(0.5),
|
||||||
])
|
])
|
||||||
|
|
||||||
transform_test = transforms.Compose([
|
transform_test = transforms.Compose([
|
||||||
|
@ -152,7 +152,7 @@ def get_cifar_loaders(batch_size=128, test_batch_size=1000, perc=1.0):
|
||||||
# AddErlangNoise(0.0001, 0.0001),
|
# AddErlangNoise(0.0001, 0.0001),
|
||||||
# AddExponentialNoise(2),
|
# AddExponentialNoise(2),
|
||||||
# AddUniformNoise(100, 1), # CIFAR requires big a value
|
# AddUniformNoise(100, 1), # CIFAR requires big a value
|
||||||
# AddInpulseNoise(0.5),
|
# AddImpulseNoise(0.5),
|
||||||
])
|
])
|
||||||
|
|
||||||
transform_test = transforms.Compose([
|
transform_test = transforms.Compose([
|
||||||
|
|
Loading…
Reference in New Issue