Commit 97a2ec5e authored by Pietro Morerio's avatar Pietro Morerio
Browse files

soft speckle test

parent 5de5befd
......@@ -17,8 +17,8 @@ def show_batch(batch):
def add_defect(image):
# pepper noise only
image = random_noise(image, mode='pepper', seed=1234)
#~ image = random_noise(image, mode='speckle', mean=-0.1, var = 0.01)
#~ image = random_noise(image, mode='pepper', seed=1234)
image = random_noise(image, mode='speckle', mean=-0.01, var = 0.001)
return image
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment