diff --git a/making_noise.py b/making_noise.py index 0f6f9e8..8baa3d0 100644 --- a/making_noise.py +++ b/making_noise.py @@ -90,7 +90,7 @@ class AddUniformNoise(object): 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): 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), # AddExponentialNoise(2), # AddUniformNoise(2, 1), - AddInpulseNoise(0.5), + AddImpulseNoise(0.5), ]) 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), # AddExponentialNoise(2), # AddUniformNoise(100, 1), # CIFAR requires big a value - # AddInpulseNoise(0.5), + # AddImpulseNoise(0.5), ]) transform_test = transforms.Compose([